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

backports from master #4059

Merged

Conversation

vicentebolea
Copy link
Collaborator

  • Python API: support writing Python numeric variables and lists (of one type) as ADIOS variables and attributes. Add extra tests for them and some in the bpWrite and bpReaderHeatMap2D examples. - Add glue to accept lists and single python value for variables and attributes. - Add test for lists and values (int, float and complex) to API tests. - Turn on HDF5 Python test (serial version)
  • Add a static windows build to CI (Add a static windows build to CI #4037)
  • Add arguments to IO.AvailableAttributes() and io.available_attributes() to get attributes of a specific variable.
  • Return a 0-dim numpy array of size 1 when reading a scalar variable instead of a 1-dim array of size 1. The difference can be seen with gray-scott gsplot, as step is printed now 10 instead of [10]. Same when running bpReaderHeatMap2D.py.
  • Add timeout parameter to stream.steps(). Necessary for controlling timeout in in situ processing. Also very useful for not being stuck forever in processing files that were not closed properly. Default is still infinity, which may not be the ideal setup for python scripts in practice. Usage: for _ in f.steps(timeout=1.0): ...
  • blosc: do not export blosc lib
  • Fix segfault when asking for BlocksInfo for a variable name that does not exist. Return value is now empty dictionary. Also fix handling 1D arrays made from LocalValues. Now this code works for examples/basics/values/valuesWrite.cpp ProcessID: with adios2.Stream("values.bp", 'rra') as f: e = f.engine bi = e.blocks_info("ProcessID", 0) print(f"Blocks info = {bi}")

pnorbert and others added 7 commits February 28, 2024 15:30
…e type) as ADIOS variables and attributes. Add extra tests for them and some in the bpWrite and bpReaderHeatMap2D examples.

- Add glue to accept lists and single python value for variables and attributes.
- Add test for lists and values (int, float and complex) to API tests.
- Turn on HDF5 Python test (serial version)
- Upstream EVpath, FFS and dill.
 - Actually add the CI
Co-authored-by: Vicente Bolea <vicente.bolea@gmail.com>
…nstead of a 1-dim array of size 1. The difference can be seen with gray-scott gsplot, as step is printed now 10 instead of [10]. Same when running bpReaderHeatMap2D.py.
…meout in in situ processing. Also very useful for not being stuck forever in processing files that were not closed properly. Default is still infinity, which may not be the ideal setup for python scripts in practice. Usage:

    for _ in f.steps(timeout=1.0):
        ...
… not exist. Return value is now empty dictionary. Also fix handling 1D arrays made from LocalValues. Now this code works for examples/basics/values/valuesWrite.cpp ProcessID:

    with adios2.Stream("values.bp", 'rra') as f:
        e = f.engine
        bi = e.blocks_info("ProcessID", 0)
        print(f"Blocks info = {bi}")
@vicentebolea
Copy link
Collaborator Author

@ax3l you can use this branch to test the fix for your openPMD builds.

@vicentebolea
Copy link
Collaborator Author

@eisenhauer new round of backpors

@vicentebolea vicentebolea self-assigned this Feb 28, 2024
Copy link
Member

@eisenhauer eisenhauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good...

@vicentebolea vicentebolea merged commit 1f50ea2 into ornladios:release_210 Feb 29, 2024
44 of 53 checks passed
@vicentebolea vicentebolea deleted the backports-from-master branch February 29, 2024 17:54
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

Successfully merging this pull request may close these issues.

3 participants