Changes in / [80963c6c:a74dd016] in sasview
- Location:
- src/sas
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Plotting/Plotter2D.py
rd09f462f r8db20a9 468 468 # check scale 469 469 if self.scale == 'log_{10}': 470 #with numpy.errstate(all='ignore'): 471 # output = numpy.log10(output) 472 #index = numpy.isfinite(output) 473 #if not index.all(): 474 # cutoff = (numpy.quantile(output[index], 0.05) - numpy.log10(2) if index.any() else 0.) 475 # output[output < cutoff] = cutoff 476 # output[~index] = cutoff 477 try: 478 if self.zmin <= 0 and len(output[output > 0]) > 0: 479 zmin_temp = self.zmin 480 output[output > 0] = numpy.log10(output[output > 0]) 481 elif self.zmin <= 0: 482 zmin_temp = self.zmin 483 output[output > 0] = numpy.zeros(len(output)) 484 output[output <= 0] = MIN_Z 485 else: 486 zmin_temp = self.zmin 487 output[output > 0] = numpy.log10(output[output > 0]) 488 except: 489 #Too many problems in 2D plot with scale 490 output[output > 0] = numpy.log10(output[output > 0]) 491 pass 492 470 with numpy.errstate(all='ignore'): 471 output = numpy.log10(output) 472 index = numpy.isfinite(output) 473 if not index.all(): 474 cutoff = (numpy.quantile(output[index], 0.05) - numpy.log10(2) if index.any() else 0.) 475 output[output < cutoff] = cutoff 476 output[~index] = cutoff 493 477 vmin, vmax = None, None 494 478 -
src/sas/sascalc/dataloader/data_info.py
ra0f3c29 r8db20a9 1188 1188 final_dataset.yaxis(data._yaxis, data._yunit) 1189 1189 final_dataset.zaxis(data._zaxis, data._zunit) 1190 if hasattr(data, 'y_bins'): 1191 final_dataset.y_bins = data.y_bins 1192 if hasattr(data, 'y_bins'): 1193 final_dataset.x_bins = data.x_bins 1190 final_dataset.y_bins = data.y_bins 1191 final_dataset.x_bins = data.x_bins 1194 1192 else: 1195 1193 return_string = ("Should Never Happen: _combine_data_info_with_plottabl" -
src/sas/sascalc/dataloader/readers/cansas_reader.py
ra0f3c29 r8db20a9 493 493 self.current_datainfo.errors.add(error) 494 494 self.data_cleanup() 495 # Where are these defined?? 496 #self.sort_one_d_data() 497 #self.sort_two_d_data() 495 self.sort_one_d_data() 496 self.sort_two_d_data() 498 497 self.reset_data_list() 499 498 return self.output[0], None
Note: See TracChangeset
for help on using the changeset viewer.