Changeset 75fbd17 in sasview for invariantview/perspectives/invariant/invariant_state.py
- Timestamp:
- Feb 9, 2011 2:04:24 AM (14 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:
- c83a5af
- Parents:
- 8240eab
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
invariantview/perspectives/invariant/invariant_state.py
r68d48fa r75fbd17 2 2 """ 3 3 4 import time4 #import time 5 5 import os 6 6 import sys … … 252 252 """ 253 253 from xml.dom.minidom import getDOMImplementation 254 import time 254 255 timestamp = time.time() 255 256 # Check whether we have to write a standalone XML file … … 319 320 for name, value_list in self.bookmark_list.iteritems(): 320 321 element = newdoc.createElement('mark_'+ str(name)) 321 _,date,state,comp_state = value_list322 time,date,state,comp_state = value_list 322 323 time_element = newdoc.createElement('time') 323 324 time_element.appendChild(newdoc.createTextNode(str(value_list[0]))) … … 643 644 ## CanSAS format flag 644 645 self.cansas = cansas 646 self.state = None 645 647 646 648 def read(self, path): … … 742 744 elif len(output) == 1: 743 745 # Call back to post the new state 744 745 self.call_back(state=output[0].meta_data['invstate'],746 datainfo = output[0])746 self.state = output[0].meta_data['invstate'] 747 #self.call_back(state=output[0].meta_data['invstate'], 748 # datainfo = output[0]) 747 749 return output[0] 748 750 else: 749 751 return output 750 752 753 def get_state(self): 754 return self.state 751 755 752 756 def write(self, filename, datainfo=None, invstate=None):
Note: See TracChangeset
for help on using the changeset viewer.