Changeset ae69c690 in sasview for src/sas/sascalc/dataloader/file_reader_base_class.py
- Timestamp:
- Sep 15, 2017 12:48:18 PM (7 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, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 6d62b7f
- Parents:
- da9b239
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/dataloader/file_reader_base_class.py
r4660990 rae69c690 191 191 self.output = [] 192 192 193 def remove_empty_q_values(self, has_error_dx=False, has_error_dy=False): 193 def remove_empty_q_values(self, has_error_dx=False, has_error_dy=False, 194 has_error_dxl=False, has_error_dxw=False): 194 195 """ 195 196 Remove any point where Q == 0 … … 198 199 self.current_dataset.x = self.current_dataset.x[x != 0] 199 200 self.current_dataset.y = self.current_dataset.y[x != 0] 200 self.current_dataset.dy = self.current_dataset.dy[x != 0] if \ 201 has_error_dy else np.zeros(len(self.current_dataset.y)) 202 self.current_dataset.dx = self.current_dataset.dx[x != 0] if \ 203 has_error_dx else np.zeros(len(self.current_dataset.x)) 201 if has_error_dy: 202 self.current_dataset.dy = self.current_dataset.dy[x != 0] 203 if has_error_dx: 204 self.current_dataset.dx = self.current_dataset.dx[x != 0] 205 if has_error_dxl: 206 self.current_dataset.dxl = self.current_dataset.dxl[x != 0] 207 if has_error_dxw: 208 self.current_dataset.dxw = self.current_dataset.dxw[x != 0] 204 209 205 210 def reset_data_list(self, no_lines=0):
Note: See TracChangeset
for help on using the changeset viewer.