Skip to content

Commit

Permalink
Merge pull request #29 from fusion-energy/moving_upload_to_side_bar
Browse files Browse the repository at this point in the history
fixed plotting
  • Loading branch information
shimwell authored Feb 18, 2024
2 parents 3183584 + 3b997de commit f5a1c9a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/openmc_geometry_plot/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,10 @@ def main():

# CSG route
elif dagmc_file is None and geometry_xml_file is not None:
# print('got here')

save_uploadedfile(geometry_xml_file)

tree = ET.parse(geometry_xml_file.name)
# tree = ET.parse('geometry.xml')

root = tree.getroot()
all_cells = root.findall("cell")
Expand Down Expand Up @@ -149,8 +148,7 @@ def main():
my_mats.append(new_mat)

my_geometry = openmc.Geometry.from_xml(
path='geometry.xml',
# path=geometry_xml_file.name,
path=geometry_xml_file.name,
materials=my_mats
)
all_cells = my_geometry.get_all_cells()
Expand Down

0 comments on commit f5a1c9a

Please sign in to comment.