{ "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": "2026-02-27T08:36:33.620797Z", "iopub.status.busy": "2026-02-27T08:36:33.620622Z", "iopub.status.idle": "2026-02-27T08:36:34.497871Z", "shell.execute_reply": "2026-02-27T08:36:34.496872Z" } }, "outputs": [], "source": [ "import sandy" ] }, { "cell_type": "code", "execution_count": 2, "id": "988d6ad5", "metadata": { "execution": { "iopub.execute_input": "2026-02-27T08:36:34.499781Z", "iopub.status.busy": "2026-02-27T08:36:34.499545Z", "iopub.status.idle": "2026-02-27T08:36:34.502445Z", "shell.execute_reply": "2026-02-27T08:36:34.501537Z" } }, "outputs": [], "source": [ "import pandas as pd" ] }, { "cell_type": "code", "execution_count": 3, "id": "26e45db5", "metadata": { "execution": { "iopub.execute_input": "2026-02-27T08:36:34.503986Z", "iopub.status.busy": "2026-02-27T08:36:34.503831Z", "iopub.status.idle": "2026-02-27T08:36:34.506689Z", "shell.execute_reply": "2026-02-27T08:36:34.505967Z" } }, "outputs": [], "source": [ "libraries = [\"jeff_33\", \"jeff_311\", \"endfb_80\", \"endfb_71\", \"jendl_5\"]" ] }, { "cell_type": "code", "execution_count": 4, "id": "e3bf76d5", "metadata": { "execution": { "iopub.execute_input": "2026-02-27T08:36:34.508458Z", "iopub.status.busy": "2026-02-27T08:36:34.508283Z", "iopub.status.idle": "2026-02-27T08:36:55.986749Z", "shell.execute_reply": "2026-02-27T08:36:55.985823Z" } }, "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_5'...\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": "2026-02-27T08:36:55.988667Z", "iopub.status.busy": "2026-02-27T08:36:55.988478Z", "iopub.status.idle": "2026-02-27T08:36:55.994165Z", "shell.execute_reply": "2026-02-27T08:36:55.993466Z" } }, "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_5 8023\n" ] } ], "source": [ "print(pd.Series(data, name=\"# nuclides\").rename_axis(\"library\").reset_index())" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "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.14" } }, "nbformat": 4, "nbformat_minor": 5 }