- Timestamp:
- Apr 10, 2017 11:03:10 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:
- a67c494
- Parents:
- 4b5f2657
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/dataloader/readers/sesans_reader.py
rf6c2555 r149b8f6 96 96 data.shape[1])) 97 97 98 if data.size < 1:98 if not data.size: 99 99 raise RuntimeError("{} is empty".format(path)) 100 100 x = data[:, headers.index("SpinEchoLength")] … … 102 102 dx = data[:, headers.index("SpinEchoLength_error")] 103 103 else: 104 dx = x *0.05104 dx = x * 0.05 105 105 lam = data[:, headers.index("Wavelength")] 106 106 if "Wavelength_error" in headers: 107 107 dlam = data[:, headers.index("Wavelength_error")] 108 108 else: 109 dlam = lam *0.05109 dlam = lam * 0.05 110 110 y = data[:, headers.index("Depolarisation")] 111 111 dy = data[:, headers.index("Depolarisation_error")]
Note: See TracChangeset
for help on using the changeset viewer.