{ "cells": [ { "cell_type": "markdown", "id": "0bc344cf", "metadata": {}, "source": [ "# How many nuclides in the decay data libraries?" ] }, { "cell_type": "code", "execution_count": 1, "id": "6123dc04", "metadata": { "execution": { "iopub.execute_input": "2024-09-27T09:23:13.124362Z", "iopub.status.busy": "2024-09-27T09:23:13.123880Z", "iopub.status.idle": "2024-09-27T09:23:13.637372Z", "shell.execute_reply": "2024-09-27T09:23:13.636801Z" } }, "outputs": [], "source": [ "import sandy" ] }, { "cell_type": "code", "execution_count": 2, "id": "988d6ad5", "metadata": { "execution": { "iopub.execute_input": "2024-09-27T09:23:13.639583Z", "iopub.status.busy": "2024-09-27T09:23:13.639149Z", "iopub.status.idle": "2024-09-27T09:23:13.641871Z", "shell.execute_reply": "2024-09-27T09:23:13.641409Z" } }, "outputs": [], "source": [ "import pandas as pd" ] }, { "cell_type": "code", "execution_count": 3, "id": "26e45db5", "metadata": { "execution": { "iopub.execute_input": "2024-09-27T09:23:13.643443Z", "iopub.status.busy": "2024-09-27T09:23:13.643268Z", "iopub.status.idle": "2024-09-27T09:23:13.646033Z", "shell.execute_reply": "2024-09-27T09:23:13.645588Z" } }, "outputs": [], "source": [ "libraries = [\"jeff_33\", \"jeff_311\", \"endfb_80\", \"endfb_71\", \"jendl_40u\"]" ] }, { "cell_type": "code", "execution_count": 4, "id": "e3bf76d5", "metadata": { "execution": { "iopub.execute_input": "2024-09-27T09:23:13.647546Z", "iopub.status.busy": "2024-09-27T09:23:13.647357Z", "iopub.status.idle": "2024-09-27T09:23:27.594034Z", "shell.execute_reply": "2024-09-27T09:23:27.593438Z" } }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "reading library 'JEFF_33'...\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "reading library 'JEFF_311'...\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "reading library 'ENDFB_80'...\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "reading library 'ENDFB_71'...\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "reading library 'JENDL_40U'...\n" ] } ], "source": [ "data = {}\n", "for library in libraries:\n", " print(f\"reading library '{library.upper()}'...\")\n", " tape = sandy.get_endf6_file(library, \"decay\", \"all\")\n", " size = len(tape.data)\n", " data[library.upper()] = size" ] }, { "cell_type": "code", "execution_count": 5, "id": "50414a3b", "metadata": { "execution": { "iopub.execute_input": "2024-09-27T09:23:27.596369Z", "iopub.status.busy": "2024-09-27T09:23:27.595928Z", "iopub.status.idle": "2024-09-27T09:23:27.601514Z", "shell.execute_reply": "2024-09-27T09:23:27.601054Z" } }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ " library # nuclides\n", "0 JEFF_33 7731\n", "1 JEFF_311 7731\n", "2 ENDFB_80 7675\n", "3 ENDFB_71 7675\n", "4 JENDL_40U 6230\n" ] } ], "source": [ "print(pd.Series(data, name=\"# nuclides\").rename_axis(\"library\").reset_index())" ] } ], "metadata": { "kernelspec": { "display_name": "Python [conda env:sandy-v1.0] *", "language": "python", "name": "conda-env-sandy-v1.0-py" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.11.10" } }, "nbformat": 4, "nbformat_minor": 5 }