Changeset 3e8dee3 in sasview for src/sas/qtgui/Utilities/GuiUtils.py
- Timestamp:
- Nov 8, 2017 9:22:45 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:
- 0e80658
- Parents:
- 412e069e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Utilities/GuiUtils.py
r412e069e r3e8dee3 528 528 with open(path,'w') as out: 529 529 has_errors = True 530 if data.dy is None or data.dy == []:530 if data.dy is None or not data.dy: 531 531 has_errors = False 532 532 # Sanity check … … 538 538 has_errors = False 539 539 if has_errors: 540 if data.dx is not None and data.dx != []:540 if data.dx is not None and data.dx: 541 541 out.write("<X> <Y> <dY> <dX>\n") 542 542 else: … … 547 547 for i in range(len(data.x)): 548 548 if has_errors: 549 if data.dx is not None and data.dx != []:549 if data.dx is not None and data.dx: 550 550 if data.dx[i] is not None: 551 551 out.write("%g %g %g %g\n" % (data.x[i],
Note: See TracChangeset
for help on using the changeset viewer.