Changeset 7406040 in sasview for DataLoader/readers/cansas_reader.py
- Timestamp:
- Oct 25, 2010 1:02:45 PM (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:
- c4d6900
- Parents:
- d7b7156
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DataLoader/readers/cansas_reader.py
r0997158f r7406040 112 112 type_name = "CanSAS 1D" 113 113 ## Wildcards 114 type = ["CanSAS 1D files (*.xml)|*.xml"] 114 type = ["CanSAS 1D files (*.xml)|*.xml", 115 "CanSAS 1D AVE files (*.AVEx)|*.AVEx", 116 "CanSAS 1D AVE files (*.ABSx)|*.ABSx"] 117 115 118 ## List of allowed extensions 116 ext=['.xml', '.XML' ]119 ext=['.xml', '.XML','.avex', '.AVEx', '.absx', 'ABSx'] 117 120 118 121 def __init__(self): … … 134 137 """ 135 138 output = [] 136 137 139 if os.path.isfile(path): 138 140 basename = os.path.basename(path) … … 159 161 else: 160 162 raise RuntimeError, "%s is not a file" % path 161 162 163 # Return output consistent with the loader's api 163 164 if len(output)==0: … … 540 541 541 542 write_node(doc, entry_node, "Title", datainfo.title) 542 543 543 for item in datainfo.run: 544 544 runname = {}
Note: See TracChangeset
for help on using the changeset viewer.