Changeset 535e181 in sasview for src/sas/sascalc/file_converter/bsl_loader.py
- Timestamp:
- Aug 5, 2016 11:48: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.1.1, release-4.1.2, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 05595c4
- Parents:
- c3f0114
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/file_converter/bsl_loader.py
rc3f0114 r535e181 8 8 # TODO: Change to __init__(self, filename, frame) 9 9 # and parse n_(pixels/rasters) from header file 10 def __init__(self, filename , frame):10 def __init__(self, filename): 11 11 header_file = open(filename, 'r') 12 12 data_info = {} … … 56 56 data_info['pixels'] = 1 57 57 58 CLoader.__init__(self, data_info['filename'], frame,58 CLoader.__init__(self, data_info['filename'], data_info['frames'], 59 59 data_info['pixels'], data_info['rasters'], data_info['swap_bytes']) 60 60 … … 62 62 if name == 'filename': 63 63 return self.set_filename(value) 64 elif name == 'n_frames': 65 return self.set_n_frames(value) 64 66 elif name == 'frame': 65 67 return self.set_frame(value) … … 75 77 if name == 'filename': 76 78 return self.get_filename() 79 elif name == 'n_frames': 80 return self.get_n_frames() 77 81 elif name == 'frame': 78 82 return self.get_frame() … … 84 88 return self.get_swap_bytes() 85 89 return CLoader.__getattr__(self, name) 86 87 def create_arr(self):88 return np.zeros((self.n_rasters, self.n_pixels))
Note: See TracChangeset
for help on using the changeset viewer.