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

Possible Issue with adios2 v.2.9.1 python module #3831

Closed
PhysicsDan opened this issue Sep 29, 2023 · 2 comments
Closed

Possible Issue with adios2 v.2.9.1 python module #3831

PhysicsDan opened this issue Sep 29, 2023 · 2 comments

Comments

@PhysicsDan
Copy link

Hello,

Describe the bug
Unable to read data from adios2 file produced from WarpX PIC code when using 2.9.1

To Reproduce

  1. Data is produced via WarpX pic code which uses adios2 v2.9.1 to store the data. Adios2 is installed via conda forge.
  2. Using bpls I can see the data is correctly written to the file.
  3. Using the available_variables function from adios2 python module returns an empty list (Note: Previously worked in v. 2.8.3)
import adios2

fp = adios2.open("myfile.py", "r")
print(fp.available_variables())

Note: openpmd-api also correctly can see the contents of the file.

Expected behavior
I should see the same variables that are displayed when running bpls

Desktop (please complete the following information):

  • OS/Platform: CentOS
  • Build adios2 nompi_py311hc31d2c9_102

Additional context

Thanks

Following up

@anagainaru
Copy link
Contributor

Hey Dan, adios 2.9 is when BP5 became the default engine. For BP5 you have to inspect variables within steps, you can no longer do this before BeginStep. Could you trying modifying your code and see if it works?

@PhysicsDan
Copy link
Author

Hi Ana,
Apologies for the late reply! Yes thanks I had missed that change - all working now.
Thanks for the help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants