-
Notifications
You must be signed in to change notification settings - Fork 18
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
Write One Block Phantom Files #83
base: main
Are you sure you want to change the base?
Conversation
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.
Here's a few things that I see quickly. It would be nice to keep large data files out of the repository history if you can clear that. We can fix the unit tests afterward.
from .sarracen_dataframe import SarracenDataFrame | ||
|
||
from .interpolate import interpolate_2d, interpolate_2d_line, interpolate_3d_proj, interpolate_3d_cross | ||
from .render import render, streamlines, arrowplot | ||
|
||
import sarracen.disc | ||
|
||
__version__ = "1.2.3" | ||
__version__ = "1.2.4" |
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.
No need to change the version yet. I do that just before I make an official release.
sarracen/tests/writers/hydro32_00020
Outdated
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.
Please keep large data files out of the repository. :)
sarracen/tests/writers/jet_00158
Outdated
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.
Please keep large data files out of the repository. :)
sarracen/tests/writers/ot_00003
Outdated
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.
Please keep large data files out of the repository. :)
…to accept two dataframes. Commented out "tags = [_rename_duplicate(tag) for tag in tags]" in _write_global_header_tags_and_values as it breaks tests. Need to investigate further - massoptype_7 is expected in header vars, but because of duplicated massoftype due to _rename_duplicate(tag), we have massoftype and massoftype_2 (key error). Might not be relevant in real world files?
…_phantom # Conflicts: # sarracen/readers/read_phantom.py
This is a preliminary pull request to add functionality to create (write) Phantom files from a Sarracen Data Frame. So far, it is functional for data frames that were generated from a single-block Phantom file - we can write a Phantom file from a single data frame. It appears to fail to recreate an accurate Phantom file from the first block (first data frame produced by read_phantom) of a Phantom file, although, visually when rendering the data frames for comparison, the images appears identical.