Skip to content

Commit

Permalink
put 2d interp plotting in try except
Browse files Browse the repository at this point in the history
  • Loading branch information
AdriaanRol committed May 17, 2018
1 parent 7a9c468 commit 68ae7f7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pycqed/measurement/measurement_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ def __init__(self, name: str,
initial_value=datadir,
vals=vals.Strings(),
parameter_class=ManualParameter)
# Soft average is currently only available for "hard"
# measurements. It does not work with adaptive measurements.
# Soft average does not work with adaptive measurements.
self.add_parameter('soft_avg',
label='Number of soft averages',
parameter_class=ManualParameter,
Expand Down Expand Up @@ -745,7 +744,7 @@ def update_plotmon_2D_interp(self, force_update=False):
Updates the interpolated 2D heatmap
'''
if self.live_plot_enabled() and len(self.sweep_function_names) ==2:
# try:
try:
if (time.time() - self.time_last_2Dplot_update >
self.plotting_interval() or force_update):
# exists to force reset the x- and y-axis scale
Expand Down Expand Up @@ -777,8 +776,8 @@ def update_plotmon_2D_interp(self, force_update=False):

self.time_last_2Dplot_update = time.time()
self.secondary_QtPlot.update_plot()
# except Exception as e:
# logging.warning(e)
except Exception as e:
logging.warning(e)


def initialize_plot_monitor_adaptive(self):
Expand Down

0 comments on commit 68ae7f7

Please sign in to comment.