Description:
Currently, an instrument can only be created from a YAML configuration file.
It should also be possible to instantiate an instrument programmatically using a direct API call.
Example use case:
Developers may want to:
- Build instruments dynamically (e.g., from in-memory definitions or database records)
- Use PyAML in scripts or tests without maintaining a YAML file on disk
Expected feature:
Provide a Python API such as:
from pyaml import Instrument
instr = Instrument.from_dict({
"name": "ring",
"devices": [...],
})
Description:
Currently, an instrument can only be created from a YAML configuration file.
It should also be possible to instantiate an instrument programmatically using a direct API call.
Example use case:
Developers may want to:
Expected feature:
Provide a Python API such as: