Skip to content
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

openPMD-viewer visualize static field #312

Closed
lge0303 opened this issue Mar 18, 2021 · 7 comments
Closed

openPMD-viewer visualize static field #312

lge0303 opened this issue Mar 18, 2021 · 7 comments
Assignees
Labels

Comments

@lge0303
Copy link

lge0303 commented Mar 18, 2021

The attached zip file includes 4 static fields, no errors from openPMD-validator check, they could be visualized by yt. There are errors for loading through openPMD-viewer.
hdf5.zip

@ax3l ax3l self-assigned this Mar 24, 2021
@ax3l ax3l added the question label Mar 24, 2021
@ax3l
Copy link
Member

ax3l commented Mar 25, 2021

Hi @lge0303,

I looked at your files and they look great. Here is a work-around for you to visualize them:

ts = OpenPMDTimeSeries('./hdf5/', backend='h5py')

Thank you for reporting the issue with the visualization for those files!
There is an ambiguity / small defect in the openPMD standard with respect to particlesPath and mesh-only files; I will already go ahead and make this in openPMD-api more robust. This will be fixed with the next openPMD-api release (the current latest release is 0.13.2), so you don't need to add that extra backend='h5py' option anymore.

Refs.:

@ax3l
Copy link
Member

ax3l commented Mar 25, 2021

@lge0303 now that I debug this - actually, you just need to update your openPMD attribute when you write from 1.0.0 to 1.1.0.

The relaxation that particlesPath is optional was introduced in that version of the standard.

@lge0303
Copy link
Author

lge0303 commented Mar 25, 2021 via email

@ax3l
Copy link
Member

ax3l commented Mar 26, 2021

@lge0303 please feel free to report back once you have a chance to test this with the modified openPMD attribute and then we will close this issue :)

@lge0303
Copy link
Author

lge0303 commented Mar 29, 2021

Attached is the zip file for these files modified following your suggestions: attribute from 1.0.0 to 1.1.0.

Somehow I could not connect kernel on jupyter, so can not check the results now :-(. Do you have any suggestions for fixing the "kernel not found" on nersc jupyter? Thanks!
hdf5.zip

@lge0303
Copy link
Author

lge0303 commented Mar 29, 2021

@ax3l forgot ping you

@lge0303
Copy link
Author

lge0303 commented Mar 29, 2021

@ax3l I successfully use OpenPMD-viewer visualizing the static field. you can close this issue.

Thanks!

@lge0303 lge0303 closed this as completed Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants