Skip to content

Commit

Permalink
Merge branch 'iterative_report' of github.com:qiboteam/qibocal into i…
Browse files Browse the repository at this point in the history
…terative_report
  • Loading branch information
andrea-pasquale committed Jul 10, 2023
2 parents 708f595 + 3627c84 commit 098c8bb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/qibocal/protocols/characterization/resonator_spectroscopy.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,12 @@ def update(self):
amplitude when running resonator spectroscopy at
high power."""
up: dict[str, ParameterValue] = {}
if self.bare_frequency == {}:
fields_to_updated = [fld for fld in fields(self) if fld.name != "amplitude"]
else:
fields_to_updated = fields(self)
fields_to_updated = (
[fld for fld in fields(self) if fld.name != "amplitude"]
if self.bare_frequency == {}
else fields(self)
)

for fld in fields_to_updated:
if "update" in fld.metadata:
up[fld.metadata["update"]] = getattr(self, fld.name)
Expand Down

0 comments on commit 098c8bb

Please sign in to comment.