Skip to content

Commit

Permalink
Fix bug where calibration_db is saved to base directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
deanpoulos committed Oct 22, 2024
1 parent ac6e1b4 commit ae42a1d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,9 @@ def add_octaves(machine: QuAM, octaves_settings: Dict, quam_state_path: Union[Pa
machine.network["octave_ips"] = octave_ips
machine.network["octave_ports"] = octave_ports

if isinstance(quam_state_path, Path):
quam_state_path = str(quam_state_path.parent.resolve())
if isinstance(quam_state_path, str):
quam_state_path = Path(quam_state_path)
quam_state_path = str(quam_state_path.parent.resolve())
for i, octave_name in enumerate(octaves_settings):
octave = Octave(
name=octave_name,
Expand Down

1 comment on commit ae42a1d

@HiroQM
Copy link
Contributor

@HiroQM HiroQM commented on ae42a1d Oct 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've confirmed that the this fix generates calibration_db.json right under /configuration as expected (tested after removing quam_state and re-ran make_wiring.py and make_quam.py)

After generating it, running scripts was successful.

Please sign in to comment.