{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Evaluated Libraries\n", "\n", "In this section we briefly show you how to load and plot evaluated data. Let us start by importing some visualizing packages and `nucml.datasets` and setting up a directory where some of the generated figures can be saved." ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "ExecuteTime": { "end_time": "2021-05-05T22:55:41.397549Z", "start_time": "2021-05-05T22:55:41.394549Z" } }, "outputs": [], "source": [ "# # PROTOTYPE\n", "# import sys\n", "# sys.path.append(\"../../\")" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "ExecuteTime": { "end_time": "2021-05-05T22:55:44.577835Z", "start_time": "2021-05-05T22:55:42.962840Z" } }, "outputs": [], "source": [ "import seaborn as sns\n", "import nucml.datasets as nuc_data\n", "import logging\n", "\n", "logger = logging.getLogger()\n", "logger.setLevel(logging.CRITICAL)" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "ExecuteTime": { "end_time": "2021-05-05T22:55:45.485414Z", "start_time": "2021-05-05T22:55:45.481915Z" } }, "outputs": [], "source": [ "figure_dir = \"Figures/\" # saving directory" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Loading Evaluated Data\n", "\n", "We can simply load ENDF data using the `load_evaluation()` method for any given isotope and reaction channel (`MT`)." ] }, { "cell_type": "code", "execution_count": 4, "metadata": { "ExecuteTime": { "end_time": "2021-05-05T22:55:48.911726Z", "start_time": "2021-05-05T22:55:48.882728Z" } }, "outputs": [], "source": [ "chlorine_np = nuc_data.load_evaluation(\"cl35\", 103)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Notice the path where the data is being loaded from. There will be cases where the requested data will not be avaliable. If missing, please submit an issue in the GitHub repo or if possible submit a PR with the needed data for the community to use." ] }, { "cell_type": "code", "execution_count": 9, "metadata": { "ExecuteTime": { "end_time": "2021-05-05T22:57:50.059768Z", "start_time": "2021-05-05T22:57:49.905769Z" } }, "outputs": [], "source": [ "uranium_nf = nuc_data.load_evaluation(\"u235\", 18)" ] }, { "cell_type": "code", "execution_count": 10, "metadata": { "ExecuteTime": { "end_time": "2021-05-05T22:57:53.259844Z", "start_time": "2021-05-05T22:57:53.248838Z" } }, "outputs": [ { "data": { "text/html": [ "
\n", " | Energy | \n", "Data | \n", "
---|---|---|
0 | \n", "-5.000000 | \n", "4.490276 | \n", "
1 | \n", "-4.986224 | \n", "4.483386 | \n", "
2 | \n", "-4.972451 | \n", "4.476500 | \n", "
3 | \n", "-4.958670 | \n", "4.469610 | \n", "
4 | \n", "-4.944901 | \n", "4.462724 | \n", "