- Timestamp:
- Apr 20, 2017 3:03:34 PM (8 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.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)
- 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 domain2 1 """ 3 2 File extension registry. … … 22 21 # Add an association by setting an element 23 22 registry['.zip'] = unzip 24 23 25 24 # Multiple extensions for one loader 26 25 registry['.tgz'] = untar … … 38 37 # Show registered extensions 39 38 print registry.extensions() 40 39 41 40 # Can also register a format name for explicit control from caller 42 41 registry['cx3'] = cx3 -
src/sas/sascalc/dataloader/loader.py
rda8bb53 r5d8f9b3 14 14 """ 15 15 ##################################################################### 16 # This software was developed by the University of Tennessee as part of the17 # Distributed Data Analysis of Neutron Scattering Experiments (DANSE)18 # project funded by the US National Science Foundation.19 # See the license text in license.txt20 # copyright 2008, University of Tennessee16 # 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 21 21 ###################################################################### 22 22 … … 25 25 import logging 26 26 import time 27 import mimetypes28 27 from zipfile import ZipFile 29 28 from sas.sascalc.data_util.registry import ExtensionRegistry … … 36 35 from readers import cansas_reader_HDF5 37 36 38 39 37 logger = logging.getLogger(__name__) 38 40 39 41 40 class Registry(ExtensionRegistry):
Note: See TracChangeset
for help on using the changeset viewer.