File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 6
6
cut_figure_exists ,
7
7
get_current_plot ,
8
8
)
9
+ from mslice .models .cut .cut import SampleTempValueError
9
10
from mslice .models .cut .cut_functions import compute_cut
10
11
from mslice .models .labels import generate_legend
11
12
from mslice .models .workspacemanager .workspace_algorithms import export_workspace_to_ads
@@ -316,6 +317,13 @@ def _get_overall_q_axis(self):
316
317
def _get_overall_max_signal (self , intensity_correction ):
317
318
overall_max_signal = 0
318
319
for cut in self ._cut_cache_dict [plt .gca ()]:
320
+ try :
321
+ cut .sample_temp
322
+ except SampleTempValueError :
323
+ try :
324
+ self .propagate_sample_temperatures_throughout_cache (plt .gca ())
325
+ except RuntimeError :
326
+ continue
319
327
ws = cut .get_intensity_corrected_ws (intensity_correction )
320
328
max_cut_signal = np .nanmax (ws .get_signal ())
321
329
if max_cut_signal > overall_max_signal :
You can’t perform that action at this time.
0 commit comments