- Timestamp:
- Apr 4, 2017 6:05:18 PM (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:
- cb9feea8
- Parents:
- bc6532e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/dataloader/readers/sesans_reader.py
rbc6532e r56e2e3e 65 65 headers[h[:-1].strip()] = temp[-1][1:-1] 66 66 data = np.loadtxt(input_f) 67 if data.size < 1: 68 raise RuntimeError("{} is empty".format(path)) 67 69 x = data[:, 0] 68 70 dx = data[:, 3] … … 105 107 float(self._header_fetch(params, "Q_ymax")), 106 108 self._fetch_unit(params, "Q_ymax")) 107 108 if len(output.x) < 1: 109 raise RuntimeError("%s is empty" % path) 110 return output 109 return output 111 110 112 111 else:
Note: See TracChangeset
for help on using the changeset viewer.