Skip to content

openpmd code not supporting ADIOS2 output #294

@denisbertini

Description

@denisbertini

i can not read a standard openpmd ADIOS2 output ( bp format )

 pp_container]/lustre/rz/dbertini/containers/dev/cpu $ python
Python 3.12.8 (main, Dec 12 2024, 16:30:29) [GCC 8.5.0 20210514 (Red Hat 8.5.0-22)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> import postpic as pp
/venv/plasma/lib64/python3.12/site-packages/postpic/io/npy.py:26: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  import pkg_resources as pr
/venv/plasma/lib/python3.12/site-packages/pkg_resources/__init__.py:3147: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('sphinxcontrib')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
  declare_namespace(pkg)
>>> pp.chooseCode('openpmd')
>>> pr= pp.readDump('/lustre/rz/dbertini2/gpu/warpx/scripts/diags/lwfa_3d/openpmd_020000.bp/')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/venv/plasma/lib64/python3.12/site-packages/postpic/datareader/__init__.py", line 122, in readDump
    return _dumpreadercls(dumpidentifier, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/venv/plasma/lib64/python3.12/site-packages/postpic/datareader/openPMDh5.py", line 61, in __init__
    raise IOError('File "' + str(h5file) + '" doesnt exist.')
OSError: File "/lustre/rz/dbertini2/gpu/warpx/scripts/diags/lwfa_3d/openpmd_020000.bp/" doesnt exist.

is ADIOS2 bp format supported in postpic?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions