MarcSerraPeralta / iq_readout

Classifiers for IQ readout data from superconducting qubits
https://iq-readout.readthedocs.io/en/latest/
MIT License
1 stars 0 forks source link

Bug in `classifier.to_yaml` #47

Closed MarcSerraPeralta closed 2 months ago

MarcSerraPeralta commented 2 months ago

The values stored in the yaml file are numpy arrays and scalars, which make the yaml file look like this:

params:
  0:
    angle: !!python/object/apply:numpy.core.multiarray.scalar
    - *id002
    - !!binary |
      5hhndh8x9z8=
    mu_0_x: !!python/object/apply:numpy.core.multiarray.scalar
    - *id002
    - !!binary |
      9bc+tkxZyr8=
    mu_0_y: !!python/object/apply:numpy.core.multiarray.scalar
    - *id002
    - !!binary |
      NgGCd1+Knb8=

and it cannot be loaded using classifier.from_yaml. Also the goal of being stored in yaml files is that these files should be readable.

A test must be added to ensure that the classifiers can be correctly stored and loaded using the yaml files.