Changeset 747334d in sasview for src/sas/sascalc
- Timestamp:
- Apr 6, 2017 4:27:22 AM (8 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.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- d3bce8c
- Parents:
- 0ac6e11
- Location:
- src/sas/sascalc/dataloader
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/dataloader/data_info.py
r9a5097c r747334d 354 354 ## SESANS zacceptance 355 355 zacceptance = None 356 yacceptance = None 356 357 357 358 def __init__(self): -
src/sas/sascalc/dataloader/readers/cansas_constants.py
rad4632c r747334d 135 135 "Sesans": {"storeas": "content"}, 136 136 "zacceptance": {"storeas": "float"}, 137 "yacceptance": {"storeas": "float"}, 137 138 "<any>" : ANY 138 139 } -
src/sas/sascalc/dataloader/readers/cansas_reader.py
r8434365 r747334d 290 290 elif tagname == 'Sesans': 291 291 self.current_datainfo.isSesans = bool(data_point) 292 elif tagname == 'yacceptance': 293 self.current_datainfo.sample.yacceptance = (data_point, unit) 292 294 elif tagname == 'zacceptance': 293 295 self.current_datainfo.sample.zacceptance = (data_point, unit) … … 1055 1057 sesans.text = str(datainfo.isSesans) 1056 1058 node.append(sesans) 1059 self.write_node(node, "yacceptance", datainfo.sample.yacceptance[0], 1060 {'unit': datainfo.sample.yacceptance[1]}) 1057 1061 self.write_node(node, "zacceptance", datainfo.sample.zacceptance[0], 1058 1062 {'unit': datainfo.sample.zacceptance[1]})
Note: See TracChangeset
for help on using the changeset viewer.