Changeset 14d05ba in sasview for prview/perspectives/pr
- Timestamp:
- Sep 14, 2008 10:20:51 AM (16 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:
- 3b19ac9
- Parents:
- aab8ad7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
prview/perspectives/pr/pr.py
raab8ad7 r14d05ba 601 601 return 602 602 603 x, y, err = self.parent.load_ascii_1D(path) 603 #x, y, err = self.parent.load_ascii_1D(path) 604 # Use data loader to load file 605 try: 606 dataread = Loader().load(path) 607 x = None 608 y = None 609 err = None 610 if dataread.__class__.__name__ == 'Data1D': 611 x = dataread.x 612 y = dataread.y 613 err = dataread.dy 614 else: 615 wx.PostEvent(self.parent, StatusEvent(status="This tool can only read 1D data")) 616 return 617 except: 618 wx.PostEvent(self.parent, StatusEvent(status=sys.exc_value)) 619 return 604 620 605 621 filename = os.path.basename(path)
Note: See TracChangeset
for help on using the changeset viewer.