Changeset 5d8f9b3 in sasview for src


Ignore:
Timestamp:
Apr 20, 2017 3:03:34 PM (8 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:
371b9e2
Parents:
7a5d066
git-author:
Jeff Krzywon <krzywon@…> (04/20/17 15:03:34)
git-committer:
krzywon <krzywon@…> (04/20/17 15:03:34)
Message:

Remove unused imports and minor code cleanup.

Location:
src/sas/sascalc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sascalc/data_util/registry.py

    r7f75a3f r5d8f9b3  
    1 # This program is public domain 
    21""" 
    32File extension registry. 
     
    2221        # Add an association by setting an element 
    2322        registry['.zip'] = unzip 
    24          
     23 
    2524        # Multiple extensions for one loader 
    2625        registry['.tgz'] = untar 
     
    3837        # Show registered extensions 
    3938        print registry.extensions() 
    40          
     39 
    4140        # Can also register a format name for explicit control from caller 
    4241        registry['cx3'] = cx3 
  • src/sas/sascalc/dataloader/loader.py

    rda8bb53 r5d8f9b3  
    1414""" 
    1515##################################################################### 
    16 #This software was developed by the University of Tennessee as part of the 
    17 #Distributed Data Analysis of Neutron Scattering Experiments (DANSE) 
    18 #project funded by the US National Science Foundation. 
    19 #See the license text in license.txt 
    20 #copyright 2008, University of Tennessee 
     16# This software was developed by the University of Tennessee as part of the 
     17# Distributed Data Analysis of Neutron Scattering Experiments (DANSE) 
     18# project funded by the US National Science Foundation. 
     19# See the license text in license.txt 
     20# copyright 2008, University of Tennessee 
    2121###################################################################### 
    2222 
     
    2525import logging 
    2626import time 
    27 import mimetypes 
    2827from zipfile import ZipFile 
    2928from sas.sascalc.data_util.registry import ExtensionRegistry 
     
    3635from readers import cansas_reader_HDF5 
    3736 
    38  
    3937logger = logging.getLogger(__name__) 
     38 
    4039 
    4140class Registry(ExtensionRegistry): 
Note: See TracChangeset for help on using the changeset viewer.