Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
shell: bash -el {0}
run: |
conda install -c conda-forge "openmc>=0.15.2" jupyter
python -m pip install pypact
python -m pip install git+https://github.com/fispact/pypact
python download_fns_fusion_decay.py
mkdir -p ~/nuclear_data
wget -q -O - https://anl.box.com/shared/static/uhbxlrx7hvxqw27psymfbhi7bx7s6u6a.xz | tar -C ~/nuclear_data -xJ
Expand Down
19 changes: 6 additions & 13 deletions compare.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -21,8 +21,7 @@
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"import openmc\n",
"import openmc.deplete\n",
"import pypact as pp # can be installed with pip install pypact\n",
"import pypact as pp # needs latest version which can be installed with pip install git+https://github.com/fispact/pypact\n",
"\n",
"from openmc_activator import OpenmcActivator"
]
Expand Down Expand Up @@ -182,7 +181,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -238,16 +237,10 @@
" mass_dict = {k:v/tot * mass for k,v in comp_dict.items()}\n",
" return mass_dict\n",
"\n",
"# TODO consider replacing with pypact\n",
"def read_density(filepath):\n",
" lines = open(filepath).readlines()\n",
" for line in lines:\n",
" spl = line.strip().split()\n",
" if 'DENSITY' in line:\n",
" assert('DENSITY' == spl[0])\n",
" return float(spl[1])\n",
" raise ValueError('Density not found')\n",
"\n",
" ff = pp.InputData()\n",
" pp.from_file(ff, filepath)\n",
" return ff._density\n",
"\n",
"setup_dict = {'days': {}, 'flux_mag': {}, 'mass': {}, 'density': {}}\n",
"for k,l in experiments.items():\n",
Expand Down
Loading