Changeset 53c771e in sasview for src/sas/qtgui/Calculators/SlitSizeCalculator.py
- Timestamp:
- Nov 9, 2017 6:45:20 AM (6 years ago)
- Branches:
- 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
- Children:
- dd150ef
- Parents:
- d6b8a1d
- git-author:
- Piotr Rozyczko <rozyczko@…> (11/08/17 07:22:45)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (11/09/17 06:45:20)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Calculators/SlitSizeCalculator.py
rfbfc488 r53c771e 66 66 loader = Loader() 67 67 try: 68 data = loader.load(path_str)[0] 68 data = loader.load(path_str) 69 data = data[0] 69 70 # Can return multiple exceptions - gather them all under one umbrella and complain 70 71 except Exception as ex: … … 121 122 xdata = data.x 122 123 ydata = data.y 123 if xdata == [] or xdata is None or ydata == [] or ydata is None: 124 #if xdata == [] or xdata is None or ydata == [] or ydata is None: 125 if (not xdata or xdata is None) or (not ydata or ydata is None): 124 126 msg = "The current data is empty please check x and y" 125 127 logging.error(msg)
Note: See TracChangeset
for help on using the changeset viewer.