Changeset 51af54b in sasview for src/sans


Ignore:
Timestamp:
May 16, 2014 10:37:47 AM (10 years ago)
Author:
Jeff Krzywon <jeffery.krzywon@…>
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:
d497189
Parents:
bb1b892
Message:

Fixing project save/load and changed up an poorly worded error message.

Location:
src/sans
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/sans/dataloader/readers/cansas_reader.py

    rbb1b892 r51af54b  
    860860        # If the calling function was not the cansas reader, return a minidom 
    861861        #      object rather than an lxml object.         
    862          
    863862        frm = inspect.stack()[1] 
    864863        mod_name = frm[1].replace("\\", "/").replace(".pyc", "") 
    865864        mod_name = mod_name.replace(".py", "") 
    866         mod = mod_name.split("/readers/") 
     865        mod = mod_name.split("sans/") 
    867866        mod_name = mod[1] 
    868         if mod_name != "cansas_reader": 
     867        if mod_name != "dataloader/readers/cansas_reader": 
    869868            string = self.to_string(doc, pp=False) 
    870869            doc = parseString(string) 
  • src/sans/guiframe/gui_manager.py

    ra3b635b r51af54b  
    19581958                wx.PostEvent(self, StatusEvent(status="Completed Saving.")) 
    19591959            else: 
    1960                 msg = "%s cannot read %s\n" % (str(APPLICATION_NAME), str(path)) 
     1960                msg = "No perspective windows are loaded. " 
     1961                msg += "No data was saved to %s\n" % (str(path)) 
    19611962                logging.error(msg) 
     1963                wx.PostEvent(self,StatusEvent(status=msg)) 
    19621964        except: 
    19631965            msg = "Error occurred while saving: " 
Note: See TracChangeset for help on using the changeset viewer.