- Timestamp:
- Aug 11, 2010 10:50:58 PM (14 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:
- 7a07864
- Parents:
- 9b18735
- Location:
- guiframe
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/data_loader.py
r9b18735 rb63dc6e 172 172 load_error(sys.exc_value) 173 173 return 174 174 basename = os.path.basename(path) 175 175 # Notify user if the loader completed the load but no data came out 176 176 if output == None: 177 basename = os.path.basename(path)178 177 if not basename.endswith('.svs'): 179 178 load_error("The data file appears to be empty.") 180 179 return 181 180 182 181 root, extension = os.path.splitext(basename) 182 ext = extension.lower() 183 183 filename = os.path.basename(path) 184 184 if not output.__class__.__name__ == "list": … … 229 229 # plot data 230 230 wx.PostEvent(parent, NewPlotEvent(plot=new_plot, title=title)) 231 if format in SVS_FILE_EXT:231 if ext in SVS_FILE_EXT: 232 232 # set state and plot computation if exists 233 233 wx.PostEvent(parent,InvStateUpdateEvent()) … … 299 299 wx.PostEvent(parent, NewPlotEvent(plot=new_plot, title=str(title))) 300 300 301 if format in SVS_FILE_EXT:301 if ext in SVS_FILE_EXT: 302 302 # set state and plot computation if exists 303 303 wx.PostEvent(parent,InvStateUpdateEvent()) -
guiframe/gui_manager.py
r9b18735 rb63dc6e 795 795 fd.close() 796 796 else: 797 print "Nothing to save..." 797 798 raise RuntimeError, "%s is not a SansView (.svs) file..." % path 798 799
Note: See TracChangeset
for help on using the changeset viewer.