Changeset 35cf5c0 in sasview for src/sas/sascalc/dataloader/readers/sesans_reader.py
- Timestamp:
- Apr 9, 2017 5:31:32 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:
- 1550ee0
- Parents:
- e801a4e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/dataloader/readers/sesans_reader.py
re801a4e r35cf5c0 92 92 93 93 data = np.loadtxt(input_f) 94 95 if data.shape[1] != len(headers): 96 raise RuntimeError( 97 "File has {} headers, but {} columns".format( 98 len(headers), 99 data.shape[1])) 100 94 101 if data.size < 1: 95 102 raise RuntimeError("{} is empty".format(path))
Note: See TracChangeset
for help on using the changeset viewer.