Changeset 35b556d in sasview
- Timestamp:
- May 26, 2010 4:41:25 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:
- c6a48c27
- Parents:
- e9b12eaf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/pagestate.py
re9b12eaf r35b556d 14 14 import logging 15 15 16 import xml.dom.minidom 16 17 from xml.dom.minidom import parse 17 18 from lxml import etree … … 20 21 from DataLoader.readers.cansas_reader import Reader as CansasReader 21 22 from DataLoader.readers.cansas_reader import get_content, write_node 23 from DataLoader.data_info import Data2D 22 24 23 25 #Information to read/write state as xml … … 76 78 list_of_data2d_values = [["qx_data","qx_data"], 77 79 ["qy_data","qy_data"], 78 [" qdx_data","qdx_data"],79 [" qdy_data","qdy_data"],80 ["dqx_data","dqx_data"], 81 ["dqy_data","dqy_data"], 80 82 ["data","data"], 81 83 ["q_data","q_data"], … … 578 580 for item in list_of_data2d_values: 579 581 element = doc.createElement(item[0]) 580 exec "temp_list = self.%s"%item[1] 581 for value in temp_list: 582 exec "element.appendChild(doc.createTextNode(str(%s)))" % value 582 exec "temp_list = datainfo.%s"%item[1] 583 if temp_list is None or len(temp_list)== 0: 584 exec "element.appendChild(doc.createTextNode(str(%s)))"%temp_list 585 else: 586 for value in temp_list: 587 exec "element.appendChild(doc.createTextNode(str(%s)))"%value 583 588 entry_node.appendChild(element) 584 589
Note: See TracChangeset
for help on using the changeset viewer.