Skip to content
Snippets Groups Projects
Commit 7dc75f96 authored by Christopher Wipf's avatar Christopher Wipf
Browse files

Avoid clobbering calibrations, fixes #94

Originally fixed by Lee in MR !129; this is a more minimal fix
parent 061a6da8
No related branches found
No related tags found
No related merge requests found
......@@ -521,6 +521,8 @@ class Budget(Noise):
"""
if _precomp is None:
_precomp = dict()
# must copy first if using mul-in-place or we clobber other cals
calibration = np.ones_like(self.freq) * calibration
for cal in self._noise_cals[name]:
if _cals:
calibration *= _cals[cal]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment