Ignore:
Timestamp:
Apr 11, 2017 7:51:05 AM (7 years ago)
Author:
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.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
beba407
Parents:
7f75a3f (diff), 97c60f8 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Jeff Krzywon <krzywon@…> (04/11/17 07:51:05)
git-committer:
krzywon <krzywon@…> (04/11/17 07:51:05)
Message:

Merge branch 'master' into ticket-876

# Conflicts:
# src/sas/sascalc/dataloader/readers/ascii_reader.py
# src/sas/sascalc/dataloader/readers/xml_reader.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/guiframe/local_perspectives/data_loader/data_loader.py

    r7f75a3f r278ddee  
    77import wx 
    88import logging 
     9 
     10logger = logging.getLogger(__name__) 
    911 
    1012from sas.sascalc.dataloader.loader import Loader 
     
    7375        path = None 
    7476        self._default_save_location = self.parent._default_save_location 
    75         if self._default_save_location == None: 
     77        if self._default_save_location is None: 
    7678            self._default_save_location = os.getcwd() 
    7779 
     
    9092        if dlg.ShowModal() == wx.ID_OK: 
    9193            file_list = dlg.GetPaths() 
    92             if len(file_list) >= 0 and not file_list[0] is None: 
     94            if len(file_list) >= 0 and file_list[0] is not None: 
    9395                self._default_save_location = os.path.dirname(file_list[0]) 
    9496                path = self._default_save_location 
     
    160162                message += "\tError: {0}\n".format(error_data) 
    161163        else: 
    162             logging.error("Loader returned an invalid object:\n %s" % str(item)) 
     164            logger.error("Loader returned an invalid object:\n %s" % str(item)) 
    163165            data_error = True 
    164166 
     
    191193                log_msg += "Please try to open that file from \"open project\"" 
    192194                log_msg += "or \"open analysis\" menu." 
    193                 logging.info(log_msg) 
     195                logger.info(log_msg) 
    194196                file_errors[basename] = [log_msg] 
    195197                continue 
     
    227229                                   info="warning") 
    228230            except: 
    229                 logging.error(sys.exc_value) 
     231                logger.error(sys.exc_value) 
    230232 
    231233                error_message = "The Data file you selected could not be " 
Note: See TracChangeset for help on using the changeset viewer.