Hi Shimwell
I was using xsplot.com server for viewing OpenMc geometry. It worked fine for a while. It now gives
Saved File to geometry.xml
small icon
Model info
Material IDS found {1, 2, 4, 9}
Material names found {1, 2, 4, 9}
Cell IDS found {1, 2, 3, 4}
Cell names found {‘’}
Bounding box lower left x=-600.0 y=-600.0 z=-600.0
Bounding box upper right x=600.0 y=600.0 z=600.0
Also my install of this on MacBook is having trouble. Any help would be appreciated.
I have tried local install. Goes through steps until I select xml file. Here is the error I get
File "/Users/dasavr/anaconda3/envs/openmc-env/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 584, in _run_script
exec(code, module.__dict__)File "/Users/dasavr/anaconda3/envs/openmc-env/lib/python3.12/site-packages/openmc_plot/pages/1_🖼_Geometry_plot.py", line 21, in <module>
openmc_geometry_plot.main()File "/Users/dasavr/anaconda3/envs/openmc-env/lib/python3.12/site-packages/openmc_geometry_plot/app.py", line 366, in main
plot = my_geometry.plot(
^^^^^^^^^^^^^^^^^File "/Users/dasavr/anaconda3/envs/openmc-env/lib/python3.12/site-packages/openmc/geometry.py", line 795, in plot
return self.root_universe.plot(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/Users/dasavr/anaconda3/envs/openmc-env/lib/python3.12/site-packages/openmc/universe.py", line 446, in plot
model.plot_geometry(False, cwd=tmpdir, openmc_exec=openmc_exec)File "/Users/dasavr/anaconda3/envs/openmc-env/lib/python3.12/site-packages/openmc/model/model.py", line 828, in plot_geometry
openmc.plot_geometry(output=output, openmc_exec=openmc_exec)File "/Users/dasavr/anaconda3/envs/openmc-env/lib/python3.12/site-packages/openmc/executor.py", line 154, in plot_geometry
_run(args, output, cwd)File "/Users/dasavr/anaconda3/envs/openmc-env/lib/python3.12/site-packages/openmc/executor.py", line 125, in _run
raise RuntimeError(error_msg)
AttributeError: module ‘matplotlib.cm’ has no attribute ‘get_cmap’
Traceback:
File "/home/minhajj/miniconda3/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 589, in _run_script
exec(code, module.__dict__)File "/home/minhajj/miniconda3/lib/python3.12/site-packages/openmc_geometry_plot/app.py", line 431, in <module>
main()File "/home/minhajj/miniconda3/lib/python3.12/site-packages/openmc_geometry_plot/app.py", line 304, in main
cmap = cm.get_cmap(selected_color_map, len(all_cells))
^^^^^^^^^^^
``` error in openmc_plot