Skip to content

Commit

Permalink
pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
shimwell committed Mar 8, 2024
1 parent 0e5e39b commit 506c3c8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci_with_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ jobs:
sudo apt-get upgrade -y
sudo apt-get install -y libgl1-mesa-glx libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev libosmesa6 libosmesa6-dev libgles2-mesa-dev libarchive-dev libpangocairo-1.0-0
mamba activate
mamba install -y -c conda-forge moab gmsh python-gmsh cadquery=2.4.0
mamba create --name cad_to_dagmc python=3.11
mamba activate cad_to_dagmc
mamba install -y -c conda-forge moab gmsh python-gmsh ocp=7.7.2.0 cadquery=2.4.0
python -m pip install --upgrade pip
python -m pip install .
python -c "import cad_to_dagmc"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@
mat1 = openmc.Material()
mat1.add_element("Pb", 84.2, percent_type="ao")
mat1.add_element(
"Li", 15.8, percent_type="ao", enrichment=50.0, enrichment_target="Li6", enrichment_type="ao"
"Li",
15.8,
percent_type="ao",
enrichment=50.0,
enrichment_target="Li6",
enrichment_type="ao",
)
mat1.set_density("g/cm3", 11)
my_materials = openmc.Materials([mat1])
Expand Down Expand Up @@ -57,5 +62,7 @@
centroids = umesh_from_sp.centroids
mesh_vols = umesh_from_sp.volumes

flux_mean = tally_result.get_values(scores=["flux"], value="mean").reshape(umesh_from_sp.dimension)
flux_mean = tally_result.get_values(scores=["flux"], value="mean").reshape(
umesh_from_sp.dimension
)
umesh_from_sp.write_data_to_vtk(filename="tally.vtk", datasets={"mean": flux_mean})

0 comments on commit 506c3c8

Please sign in to comment.