Changeset 302510b in sasview for prview/perspectives/pr/pr.py
- Timestamp:
- Jun 6, 2009 12:57:53 PM (15 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
prview/perspectives/pr/pr.py
r410aad8 r302510b 6 6 import wx 7 7 import logging 8 import time 8 9 from danse.common.plottools import Data1D, Theory1D 9 10 from sans.guicomm.events import NewPlotEvent, StatusEvent … … 111 112 if datainfo is None: 112 113 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 113 120 114 121 self.current_plottable = datainfo
Note: See TracChangeset
for help on using the changeset viewer.