Changes in src/sas/qtgui/MainWindow/DataExplorer.py [c7f259d:4bf58293] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/DataExplorer.py
rc7f259d r4bf58293 4 4 import time 5 5 import logging 6 import re 6 7 7 8 from PyQt5 import QtCore … … 36 37 # The controller which is responsible for managing signal slots connections 37 38 # for the gui and providing an interface to the data model. 39 40 # This matches the ID of a plot created using FittingLogic._create1DPlot, e.g. 41 # "5 [P(Q)] modelname" 42 # or 43 # "4 modelname". 44 # Useful for determining whether the plot in question is for an intermediate result, such as P(Q) or S(Q) in the 45 # case of a product model; the identifier for this is held in square brackets, as in the example above. 46 theory_plot_ID_pattern = re.compile(r"^([0-9]+)\s+(\[(.*)\]\s+)?(.*)$") 38 47 39 48 def __init__(self, parent=None, guimanager=None, manager=None): … … 525 534 self.active_plots[plot_id].replacePlot(plot_id, plot) 526 535 else: 536 # Don't plot intermediate results, e.g. P(Q), S(Q) 537 match = self.theory_plot_ID_pattern.match(plot_id) 538 # 2nd match group contains the identifier for the intermediate result, if present (e.g. "[P(Q)]") 539 if match and match.groups()[1] != None: 540 continue 527 541 # 'sophisticated' test to generate standalone plot for residuals 528 542 if 'esiduals' in plot.title: … … 1240 1254 #if current_tab_name in self.theory_model.item(current_index).text(): 1241 1255 if current_tab_name == self.theory_model.item(current_index).text(): 1242 return1243 1256 self.theory_model.removeRow(current_index) 1244 1257 break
Note: See TracChangeset
for help on using the changeset viewer.