Changeset c10d9d6c in sasview for src/sas/sasgui/perspectives/invariant
- Timestamp:
- Mar 17, 2016 10:54:22 AM (9 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, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- fc18690, b080ba8
- Parents:
- aac161f1
- Location:
- src/sas/sasgui/perspectives/invariant
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/invariant/invariant.py
rd85c194 rc10d9d6c 237 237 else: 238 238 msg = "invariant.save_file: the data being saved is" 239 msg += " not a sas. dataloader.data_info.Data1D object"239 msg += " not a sas.sascalc.dataloader.data_info.Data1D object" 240 240 raise RuntimeError, msg 241 241 -
src/sas/sasgui/perspectives/invariant/invariant_state.py
rd85c194 rc10d9d6c 773 773 """ 774 774 if datainfo is None: 775 datainfo = sas. dataloader.data_info.Data1D(x=[], y=[])776 elif not issubclass(datainfo.__class__, sas. dataloader.data_info.Data1D):775 datainfo = sas.sascalc.dataloader.data_info.Data1D(x=[], y=[]) 776 elif not issubclass(datainfo.__class__, sas.sascalc.dataloader.data_info.Data1D): 777 777 msg = "The cansas writer expects a Data1D" 778 778 msg += " instance: %s" % str(datainfo.__class__.__name__)
Note: See TracChangeset
for help on using the changeset viewer.