-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce output class using OpenMC API #328
Conversation
Codecov ReportAttention: Patch coverage is
|
Look to improve codecov |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work, just have a look at the d1s comments
jade/output.py
Outdated
file1 = file_name | ||
elif file_name.startswith("statepoint"): | ||
file2 = file_name | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe it worth to add here a NotImplementedError if another code is requested
jade/output.py
Outdated
file2 = None | ||
|
||
for file_name in os.listdir(results_path): | ||
if code == "mcnp": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be valid also for d1s
jade/output.py
Outdated
file2 = file_name | ||
|
||
|
||
if file1 is None or (code == "mcnp" and file2 is None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mcnp and d1s behave in the same way here
Thanks Davide, I have implemented the changes as you suggested. |
Description
Introduce output class for openmc using the API. Read code version from statepoint for metadata.
Type of change
Please select what type of change this is.
Testing
Checklist: