Changeset 302510b in sasview for prview/perspectives/pr/pr.py


Ignore:
Timestamp:
Jun 6, 2009 12:57:53 PM (15 years ago)
Author:
Mathieu Doucet <doucetm@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
e733619
Parents:
675e0ab
Message:

prview: minor change to load saved inversions as a separate (time-stamped) problem and avoid confusion with data set that was previously loaded.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • prview/perspectives/pr/pr.py

    r410aad8 r302510b  
    66import wx 
    77import logging 
     8import time 
    89from danse.common.plottools import Data1D, Theory1D 
    910from sans.guicomm.events import NewPlotEvent, StatusEvent     
     
    111112                if datainfo is None: 
    112113                    raise RuntimeError, "Pr.set_state: datainfo parameter cannot be None in standalone mode" 
     114 
     115                # Ensuring that plots are coordinated correctly 
     116                t = time.localtime(datainfo.meta_data['prstate'].timestamp) 
     117                time_str = time.strftime("%b %d %H:%M", t) 
     118                datainfo.meta_data['prstate'].file = datainfo.meta_data['prstate'].file +' [' + time_str + ']' 
     119                datainfo.filename = datainfo.meta_data['prstate'].file 
    113120                     
    114121                self.current_plottable = datainfo 
Note: See TracChangeset for help on using the changeset viewer.