Describe the bug
When following the First Write example on openPMD (https://openpmd-api.readthedocs.io/en/0.12.0-alpha/usage/firstwrite.html ) via python / Jupyter
series.set_machine throws error (auto fill can't see the option)
To Reproduce
Compile-able/executable code example to reproduce the problem:
Python:
import openpmd_api as io
import numpy as np
series = io.Series("myOutput/data_001.h5", io.Access.create)
i = series.iterations[42]
series.set_author(
"i Lomi <[email protected]>")
series.set_machine( #This is not working
"Some Machine")
series.set_attribute(
"Foot", "Schnitzel")
i.set_attribute(
"hot", True)
Expected behavior
AttributeError: 'openpmd_api.openpmd_api_cxx.Series' object has no attribute 'set_machine'
Software Environment
Additional context
Add any other context about the problem here.
@PrometheusPi
I could reproduce this locally using 0.12.0-alpha and 0.8.0-alpha.
series.set_machine() appears to not exist.
Thanks for the report and proposed PR to expose this functionality in Python #796.
This indeed slipped, let's add this.
The temporary work-around for this is:
series.set_attribute("machine", "machine-site")
fixed with #796
Most helpful comment
Thanks for the report and proposed PR to expose this functionality in Python #796.
This indeed slipped, let's add this.
The temporary work-around for this is: