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 #4058

Closed

Commits on Feb 28, 2024

  1. Python API: support writing Python numeric variables and lists (of on…

    …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)
    pnorbert authored and vicentebolea committed Feb 28, 2024
    Configuration menu
    Copy the full SHA
    70be9a5 View commit details
    Browse the repository at this point in the history
  2. Add a static windows build to CI (ornladios#4037)

    - Upstream EVpath, FFS and dill.
     - Actually add the CI
    Co-authored-by: Vicente Bolea <vicente.bolea@gmail.com>
    eisenhauer authored and vicentebolea committed Feb 28, 2024
    Configuration menu
    Copy the full SHA
    96dd323 View commit details
    Browse the repository at this point in the history
  3. Add arguments to IO.AvailableAttributes() and io.available_attributes…

    …() to get attributes of a specific variable.
    pnorbert authored and vicentebolea committed Feb 28, 2024
    Configuration menu
    Copy the full SHA
    8337718 View commit details
    Browse the repository at this point in the history
  4. Return a 0-dim numpy array of size 1 when reading a scalar variable i…

    …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.
    pnorbert authored and vicentebolea committed Feb 28, 2024
    Configuration menu
    Copy the full SHA
    82b9fff View commit details
    Browse the repository at this point in the history
  5. Add timeout parameter to stream.steps(). Necessary for controlling ti…

    …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):
            ...
    pnorbert authored and vicentebolea committed Feb 28, 2024
    Configuration menu
    Copy the full SHA
    4e50476 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f4ac309 View commit details
    Browse the repository at this point in the history
  7. 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 authored and vicentebolea committed Feb 28, 2024
    Configuration menu
    Copy the full SHA
    37bd41a View commit details
    Browse the repository at this point in the history