-
Notifications
You must be signed in to change notification settings - Fork 52
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
Integrate openpmd-scipp into the main API #1716
base: dev
Are you sure you want to change the base?
Conversation
8feaf18
to
0b39620
Compare
I just took a quick look. This looks quite nice and wouldn't change much of the interface. The other stuff in the repo is mostly just for creating the README and testing, formatting etc. so I guess the only thing you would need to take over are the requirements, but this is only |
Also the Readme; I will try to integrate that into the Readthedocs page.
I'd suggest that we add a test separately as part of APITest.py. The "target audience" for the examples are users who can use them as guidelines for their own code, so I would not clutter the example with testing code. |
2986b4f
to
294f890
Compare
@@ -0,0 +1,340 @@ | |||
{ |
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.
Is the notebook important to add or does the .py
script + README have the same details?
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.
@ax3l the README from my repo is identical to the notebook since I was generating my README.md
from it with:
rm -rf README_files
python -m nbconvert --to notebook --execute README.ipynb --output README.executed.ipynb
python -m nbconvert --to markdown README.executed.ipynb --output README.md - TagRemovePreprocessor.enabled=True --TagRemovePreprocessor.remove_cell_tags remove_cell
rm -f README.executed.ipynb
so you don't need both
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 added both since having this documentation page alternatively as an executable and interactive Notebook would be a useful extra for learning how to use this. It's of course not ideal for maintenance..
|
||
Ex_line.plot() | ||
|
||
.. figure:: README_17_0.svg |
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.
Can you potentially upload the four .svg
images to a public GH gist and use them by URL? That way, we do not add larger binary artifacts to our git repo here, which keeps it small on git clone
for CMake superbuilds.
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.
SVG files are not binary, these are text files with each ~800 lines, less than many of our source files.
I tried putting them on a Gist, but it seems that Github does not hand out usable raw links.
"""openpmd_scipp: A Python package for loading openPMD datasets | ||
into scipp DataArrays. | ||
|
||
See README.md for documentation | ||
|
||
Author: | ||
Pawel Ordyna <[email protected]> | ||
|
||
License: | ||
GPL - 3.0 license. See LICENSE file for details. | ||
""" |
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.
@pordyna for openPMD-api, we use the LGPL license. Please confirm we can change the license for files in this PR and then please update the headers accordingly @franzpoeschel .
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.
yes sure go for it!
294f890
to
12e9ad3
Compare
License: LGPLv3+
This merges the code from https://github.com/pordyna/openpmd_scipp into the main API such that it can be used by
series.to_scipp()
.TODO: