From 17c7247fdcc5da118ae3f2aef0b8e62e9c8d7f50 Mon Sep 17 00:00:00 2001 From: shimwell Date: Thu, 17 Oct 2024 16:47:10 +0100 Subject: [PATCH] fixing data paths --- .../2_example_3d_regular_mesh_tallies.ipynb | 3 +-- .../1_example_transmutation_isotope_build_up.ipynb | 8 ++++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/tasks/task_08_CSG_mesh_tally/2_example_3d_regular_mesh_tallies.ipynb b/tasks/task_08_CSG_mesh_tally/2_example_3d_regular_mesh_tallies.ipynb index 00f4d3dc..c3c25fa5 100644 --- a/tasks/task_08_CSG_mesh_tally/2_example_3d_regular_mesh_tallies.ipynb +++ b/tasks/task_08_CSG_mesh_tally/2_example_3d_regular_mesh_tallies.ipynb @@ -304,8 +304,7 @@ "\n", "# loads up the output file from the simulation\n", "statepoint = openmc.StatePoint(sp_filename)\n", - "import pyvista as pv\n", - "mesh = pv.read('my_strange_vtk_file.vtk')\n", + "\n", "# extracts the mesh tally by name\n", "my_tbr_tally = statepoint.get_tally(name='tbr_on_mesh')\n", "\n", diff --git a/tasks/task_10_activation_transmutation_depletion/1_example_transmutation_isotope_build_up.ipynb b/tasks/task_10_activation_transmutation_depletion/1_example_transmutation_isotope_build_up.ipynb index a323dcb0..0ad4a01b 100644 --- a/tasks/task_10_activation_transmutation_depletion/1_example_transmutation_isotope_build_up.ipynb +++ b/tasks/task_10_activation_transmutation_depletion/1_example_transmutation_isotope_build_up.ipynb @@ -30,14 +30,14 @@ "\n", "import openmc\n", "import openmc.deplete\n", - "from pathlib import Path\n", "\n", - "# users might want to change these to use specific xml files to use particular decay data or transport cross sections\n", + "# Setting the cross section path to the correct location in the docker image.\n", + "# If you are running this outside the docker image you will have to change this path to your local cross section path.\n", + "openmc.config['cross_sections'] = '/nuclear_data/cross_sections.xml'\n", "# the chain file was downloaded with\n", "# pip install openmc_data\n", "# download_endf_chain -r b8.0\n", - "# chain_file = '/nuclear_data/chain-endf-b8.0.xml'\n", - "# openmc.config['chain_file'] = chain_file\n" + "openmc.config['chain_file'] = '/nuclear_data/chain-endf-b8.0.xml'\n" ] }, {