|
12 | 12 | class MeasurementAndPlot: |
13 | 13 | UPDATE_PERIOD = 0.01 |
14 | 14 |
|
15 | | - def __init__(self, *, script: 'MeasurementScript', name: str, gui=None, **kwargs): |
| 15 | + def __init__(self, *, script: "MeasurementScript", name: str, gui=None, **kwargs): |
16 | 16 | self.qcodes_measurement = Measurement(name=name, **kwargs) |
17 | 17 | self.qcodes_measurement.write_period = self.UPDATE_PERIOD |
18 | 18 | self.gui = gui |
@@ -64,11 +64,13 @@ def add_result(self, *args): |
64 | 64 | if self.plot_target is not None: |
65 | 65 | # the following logic only generates a dataset and sends data to the plotter |
66 | 66 | # if the QCoDeS internal _last_save_time attribute was updated. |
67 | | - last_save_time = getattr(self.qcodes_datasaver, '_last_save_time', None) |
| 67 | + last_save_time = getattr(self.qcodes_datasaver, "_last_save_time", None) |
68 | 68 | if last_save_time is None: |
69 | | - warnings.warn("Current QCoDeS version is not compatible with efficient live plotting. " |
70 | | - "The plot is updated even if the data did not change.", |
71 | | - category=RuntimeWarning) |
| 69 | + warnings.warn( |
| 70 | + "Current QCoDeS version is not compatible with efficient live plotting. " |
| 71 | + "The plot is updated even if the data did not change.", |
| 72 | + category=RuntimeWarning, |
| 73 | + ) |
72 | 74 | update_plot = True |
73 | 75 | elif last_save_time != self._last_plot_call: |
74 | 76 | update_plot = True |
|
0 commit comments