-
Notifications
You must be signed in to change notification settings - Fork 12
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
add option to export to cub5 #112
Conversation
Talking with @connoramoreno, it will likely be best to separate the cubit model building functionality from |
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.
Some minor comments about formatting, some other questions and comments about code design.
parastell/parastell.py
Outdated
) | ||
cub5_export = all_data['cub5_export'] | ||
if cub5_export['export_cub5']: |
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.
Why do we need a export_cub5
flag if we're including a separate cub5_export
dictionary in the YAML file?
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.
I'm intending this to be optional behavior, but since there are no other args to get passed having the dict doesn't really make sense, I'll change it to just be a single element
Co-authored-by: connoramoreno <[email protected]>
Co-authored-by: connoramoreno <[email protected]>
Co-authored-by: connoramoreno <[email protected]>
Co-authored-by: connoramoreno <[email protected]>
Co-authored-by: connoramoreno <[email protected]>
): | ||
"""Exports DAGMC neutronics H5M file of ParaStell components via | ||
Coreform Cubit. | ||
def build_cubit_model(self, skip_imprint=False, legacy_faceting=True): |
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.
nice separation of concerns!! 👍
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.
LGTM! Thanks @Edgar-21
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.
Looks good now!
add option to export to cub5
see #111, trying again but from a branch on the upstream to hopefully pass CI
closes #93