Changeset ecc8d1a8 in sasview
- Timestamp:
- Apr 4, 2017 6:22:33 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:
- def97a0
- Parents:
- e935ddb1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/dataloader/readers/sesans_reader.py
re935ddb1 recc8d1a8 1 1 """ 2 2 SESANS reader (based on ASCII reader) 3 3 4 4 Reader for .ses or .sesans file format 5 6 Jurrian Bakker 5 6 Jurrian Bakker 7 7 """ 8 8 import numpy as np … … 24 24 ## File type 25 25 type_name = "SESANS" 26 26 27 27 ## Wildcards 28 28 type = ["SESANS files (*.ses)|*.ses", … … 30 30 ## List of allowed extensions 31 31 ext = ['.ses', '.SES', '.sesans', '.SESANS'] 32 32 33 33 ## Flag to bypass extension check 34 34 allow_all = True 35 35 36 36 def read(self, path): 37 37 38 38 # print "reader triggered" 39 39 40 40 """ 41 41 Load data file 42 42 43 43 :param path: file path 44 44 45 45 :return: SESANSData1D object, or None 46 46 47 47 :raise RuntimeError: when the file can't be opened 48 48 :raise ValueError: when the length of the data vectors are inconsistent
Note: See TracChangeset
for help on using the changeset viewer.