Changeset b3de3a45 in sasview
- Timestamp:
- May 30, 2009 1:21:36 PM (16 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:
- 91128648
- Parents:
- 09a87ae
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DataLoader/readers/cansas_reader.py
rf31701c rb3de3a45 596 596 return data_info 597 597 598 def write(self, filename, datainfo):598 def _to_xml_doc(self, datainfo): 599 599 """ 600 Write the content of a Data1D as a CanSAS XML file 601 602 @param filename: name of the file to write 600 Create an XML document to contain the content of a Data1D 601 603 602 @param datainfo: Data1D object 604 603 """ … … 778 777 for note in item.notes: 779 778 write_node(doc, node, "SASprocessnote", note) 780 781 779 780 # Return the document, and the SASentry node associated with 781 # the data we just wrote 782 return doc, entry_node 783 784 def write(self, filename, datainfo): 785 """ 786 Write the content of a Data1D as a CanSAS XML file 787 788 @param filename: name of the file to write 789 @param datainfo: Data1D object 790 """ 791 # Create XML document 792 doc, sasentry = self._to_xml_doc(datainfo) 782 793 # Write the file 783 794 fd = open(filename, 'w')
Note: See TracChangeset
for help on using the changeset viewer.