Skip to content

Commit

Permalink
Fixed small bug in power definitions when retrieving measurements fro…
Browse files Browse the repository at this point in the history
…m file.
  • Loading branch information
6biscuits committed Dec 17, 2024
1 parent 2ca3b50 commit dca7f3f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sqdtoolz/Utilities/ResonatorTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ def import_data(
else:
# add line attenuation by dictionary
if self.power_dict != None:
if "default" not in self.power_dict.keys():
self.power_dict["default"] = 0
warnings.warn(f"There was no 'default' value in your given power_dict... setting default to 0 and proceeding.")
for label, _ in self.power_dict.items():
if label.casefold() in root.casefold():
attenuation = (
Expand Down

0 comments on commit dca7f3f

Please sign in to comment.