Ignore:
Timestamp:
Aug 10, 2018 4:17:13 AM (6 years ago)
Author:
Torin Cooper-Bennun <torin.cooper-bennun@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
44777ee
Parents:
a2cc8b97
Message:

intermediate P(Q), S(Q) values are now saved in Data Explorer and are plottable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/MainWindow/DataExplorer.py

    rebfe223 r3ae9179  
    44import time 
    55import logging 
     6import re 
    67 
    78from PyQt5 import QtCore 
     
    3637    # The controller which is responsible for managing signal slots connections 
    3738    # for the gui and providing an interface to the data model. 
     39    theory_plot_ID_pattern = re.compile(r"^([0-9]+)\s+(\[(.*)\]\s+)?(.*)$") 
    3840 
    3941    def __init__(self, parent=None, guimanager=None, manager=None): 
     
    504506                self.active_plots[plot_id].replacePlot(plot_id, plot) 
    505507            else: 
     508                # Don't plot intermediate data e.g. P(Q), S(Q) 
     509                match = self.theory_plot_ID_pattern.match(plot_id) 
     510                if match and match.groups()[1] != None: 
     511                    continue 
    506512                # 'sophisticated' test to generate standalone plot for residuals 
    507513                if 'esiduals' in plot.title: 
Note: See TracChangeset for help on using the changeset viewer.