Skip to content

Release: 0.14.2#1090

Merged
ax3l merged 6 commits intoopenPMD:release-0.14.2from
ax3l:backports-0.14.2
Aug 18, 2021
Merged

Release: 0.14.2#1090
ax3l merged 6 commits intoopenPMD:release-0.14.2from
ax3l:backports-0.14.2

Conversation

@ax3l
Copy link
Member

@ax3l ax3l commented Aug 18, 2021

https://github.com/openPMD/openPMD-api/milestone/1

Various Reader Fixes

This releases fixes regressions in reads, closing files properly, avoiding inefficient parsing and allowing more permissive casts in attribute reads. (Inofficial) support for HDF5 vlen string reads has been fixed.

Thanks to @franzpoeschel and @ax3l for contributing to this release!

Which version am I running?

Python

import openpmd_api
print(openpmd_api.__version__)

C++

#include <openPMD/openPMD.hpp>
#include <iostream>

int main() {
    // query compile-time macros:
    std::cout << OPENPMDAPI_VERSION_MAJOR << "."
              << OPENPMDAPI_VERSION_MINOR << "."
              << OPENPMDAPI_VERSION_PATCH << std::endl;
    // there is also: OPENPMDAPI_VERSION_LABEL (e.g. "alpha")

    // or query the runtime API (since 0.12.0):
    std::cout << openPMD::getVersion() << std::endl;
    return 0;
}

CLI

# command line option (since 0.12.0):
openpmd-ls --version

franzpoeschel and others added 6 commits August 17, 2021 19:10
* Failing test
* Bug fix: Don't forget closing files
We inofficially try to also support HDF5 variable lengths strings in
reading, just to increase compatibility.

This was never working it seems.
…MD#1085)

* Failing test

* Conversions in Attribute.hpp

1) single values to 1-value vectors
2) vectors to arrays
3) arrays to vectors

* Some cleanup in Attribute.hpp

1) Simplify types in DoConvert, remove unnecessary template parameter
2) Replace a long if-then-else chain by variantSrc::visit

* CoreTest: Fix std::array constructors

Make more widely compile-able.

* Explicit casting in some places

This avoids some warnings

* Intel compilers: Don't use variantSrc::visit

They don't like it

* Remove scattered checks for vector attributes

* Generalize icpc guard

As defined in CMake for compiler identification.

* Doc ICC version (2021.3.0)
* setAttribute: Reject Empty Strings

Some backends, especially HDF5, do not allow us to define zero-sized
strings. We thus need to catch this in the frontend and forward the
restriction to the user.

* Test: setAttribute("key", "") throws

* setAttribute Check: C++14 compatible
@ax3l ax3l requested a review from franzpoeschel August 18, 2021 02:19
@ax3l ax3l added this to the 0.14.2 milestone Aug 18, 2021
@ax3l ax3l changed the base branch from dev to release-0.14.2 August 18, 2021 02:20
@ax3l ax3l merged commit e00bede into openPMD:release-0.14.2 Aug 18, 2021
@ax3l ax3l deleted the backports-0.14.2 branch August 18, 2021 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants