Skip to content

Commit bc7e10b

Browse files
committed
Fixed issue #85
1 parent edcc25e commit bc7e10b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

application.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,8 @@ def set_black(self):
886886

887887
self._bnc.stop()
888888

889-
tp_scopes /= p_N_c # Correct averaging
889+
for spectrum in tp_scopes.values():
890+
spectrum /= p_N_c # Correct averaging
890891

891892
self.spectra_storage.putBlack(tp_scopes) # Put in spectrum storage
892893
experiment_logger.info("Black set.")
@@ -971,7 +972,8 @@ def set_white(self):
971972
else:
972973
tp_scopes = spectra
973974

974-
tp_scopes /= p_N_c
975+
for spectrum in tp_scopes.values():
976+
spectrum /= p_N_c
975977

976978
self._bnc.stop()
977979
self.spectra_storage.putWhite(tp_scopes)

0 commit comments

Comments
 (0)