Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make notebooks compatible with OpenMC version 0.15.0 #23

Merged
merged 8 commits into from
Jul 10, 2024
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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ jobs:
with:
activate-environment: jupyter-actions
environment-file: .github/environment.yml
python-version: 3.9
python-version: "3.10"

- name: Install OpenMC
shell: bash -l {0}
run: |
conda install -n base conda-libmamba-solver
conda config --set solver libmamba
conda activate jupyter-actions
conda install -c conda-forge openmc==0.14.0
conda install -c conda-forge openmc==0.15.0

- name: Cache Cross Sections
id: xs-cache
Expand Down
2 changes: 0 additions & 2 deletions .test/test_notebooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ def find_notebooks():
# Get just the notebooks from the git files
notebooks = [fn for fn in git_files if fn.endswith(".ipynb")]
# remove the MGXS notebooks that use on OepnMOC for now
notebooks.remove('mgxs-part-ii.ipynb')
notebooks.remove('mgxs-part-iii.ipynb')
return notebooks


Expand Down
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
OpenMC Notebooks
----------------

This repository contains a set of example Jupyter notebooks demonstrating
various capabilities in OpenMC from basic model building to advanced features
such as depletion/activation, CAD geometry universes, etc.

Notebook versioning
-------------------

Notebooks contained in the `main` branch of this repository can be expected to
work with the latest release of OpenMC. Note, `main` **is not the default branch
of this repository** and must be checked out after cloning the repo.

Previous versions notebooks will be tagged with the corresponding OpenMC version
with which they are expected to work. These tags can be used to checkout
notebooks ensured to be compatible with the corresponding release of OpenMC.

Continuous development of these notebooks occurs in the `develop` branch, the
default branch of this repository. We ask that any updates or contributions to
the repository occur based on this branch.
1 change: 1 addition & 0 deletions candu.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@
"settings.batches = 20\n",
"settings.inactive = 10\n",
"settings.source = openmc.IndependentSource(space=openmc.stats.Point())\n",
"settings.output = {'tallies' : False}\n",
"settings.export_to_xml()"
]
},
Expand Down
Loading