Changeset df7046f in sasview for guiframe


Ignore:
Timestamp:
Jan 21, 2011 3:35:47 PM (14 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
c26a64b
Parents:
cacbd7d
Message:

working on loading multiple file

Location:
guiframe/local_perspectives
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • guiframe/local_perspectives/data_loader/data_loader.py

    rf444b20 rdf7046f  
    66import sys 
    77import wx 
     8import logging 
    89 
    910from DataLoader.loader import Loader 
     
    192193        """ 
    193194        message = "" 
     195        log_msg = '' 
    194196        output = [] 
    195197        error_message = "" 
     
    199201            if flag: 
    200202                if extension.lower() in EXTENSIONS: 
    201                     error_message = "Cannot load: %s\n" % str(p_file) 
    202                     error_message += "Try File -> open ...." 
     203                    log_msg = "Data Loader cannot " 
     204                    log_msg += "load: %s\n" % str(p_file) 
     205                    log_msg += "Try File -> open ...." 
     206                    logging.info(log_msg) 
    203207                    continue 
    204208            else: 
    205209                if extension.lower() not in EXTENSIONS: 
    206                     error_message = "Cannot load: %s\n" % str(p_file) 
    207                     error_message += "Try Data -> Load ...." 
     210                    log_msg = "File Loader cannot" 
     211                    log_msg += " load: %s\n" % str(p_file) 
     212                    log_msg += "Try Data -> Load ...." 
     213                    logging.info(log_msg) 
    208214                    continue 
    209215            try: 
     
    223229                self.load_update(output=output, message=error_message) 
    224230                 
    225         message = "Loading Complete!" 
     231        message = "Loading Complete! " 
     232        message += log_msg 
    226233        self.load_complete(output=output, error_message=error_message, 
    227234                       message=message, path=path) 
  • guiframe/local_perspectives/plotting/Plotter1D.py

    r691643c rdf7046f  
    2222from danse.common.plottools.plottables import Graph 
    2323from sans.guiframe import dataFitting  
    24 from sans.guicomm.events import EVT_NEW_PLOT 
    25 from sans.guicomm.events import StatusEvent  
    26 from sans.guicomm.events import NewPlotEvent 
    27 from sans.guicomm.events import SlicerEvent 
    28 from sans.guicomm.events import ErrorDataEvent 
    29 from sans.guicomm.events import RemoveDataEvent 
    30 from sans.guicomm.events import AddManyDataEvent 
     24from sans.guiframe.events import EVT_NEW_PLOT 
     25from sans.guiframe.events import StatusEvent  
     26from sans.guiframe.events import NewPlotEvent 
     27from sans.guiframe.events import SlicerEvent 
     28from sans.guiframe.events import ErrorDataEvent 
     29from sans.guiframe.events import RemoveDataEvent 
     30from sans.guiframe.events import AddManyDataEvent 
    3131from sans.guiframe.utils import PanelMenu 
    3232from sans.guiframe.dataFitting import Data1D 
Note: See TracChangeset for help on using the changeset viewer.