This seems so cool. Thanks a lot! I just tried the web application, and it worked perfectly for two example geometry.xml files.
One thing that would make it even more pleasant to use, although I have no idea how to do such a thing (or how much work it is), would be if you could zoom in on specific areas with the mouse. A bit like in Matplotlib. I think this feature exists in the source plot.
If you could download it as svg, pgf or pdf, you could use the graphics generated here directly for publications / presentations.
But that’s just an idea that came to me, and actually, I wanted to say thank you first instead of giving you more work.
The source plotter is even more useful for me (did we have such a feature before? if so, I wasn’t aware of it.). So far, I was always doing it with a cumbersome construct of Python scripts.
Unfortunately, the pip package does not work properly for me, it seems like a similar problem lakshayjain had I believe.
I copied the terminal output below, and attach a screenshot of the error.
👋 Welcome to Streamlit!
If you’d like to receive helpful onboarding emails, news, offers, promotions,
and the occasional swag, please enter your email address below. Otherwise,
leave this field blank.
- This open source library collects usage statistics.
- We cannot see and do not store information contained inside Streamlit apps,
such as text, charts, images, etc.
- Telemetry data is stored in servers in the United States.
- If you'd like to opt out, add the following to ~/.streamlit/config.toml,
creating that file if necessary:
gatherUsageStats = false
You can now view your Streamlit app in your browser.
Local URL: http://localhost:8501
Network URL: http://192.168.0.245:8501
2022-11-29 09:49:38.492 Uncaught app exception
Traceback (most recent call last):
File "/home/cpf/.local/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 563, in _run_script
File "/home/cpf/.local/lib/python3.9/site-packages/openmc_plot/app.py", line 14, in <module>
openmc.config['cross_sections'] = cross_section_path
AttributeError: module 'openmc' has no attribute 'config'