Changeset 40a87fa in sasmodels for sasmodels/custom/__init__.py


Ignore:
Timestamp:
Aug 8, 2016 11:24:11 AM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
2472141
Parents:
2d65d51
Message:

lint and latex cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/custom/__init__.py

    r56b2687 r40a87fa  
    1616    from importlib.util import spec_from_file_location, module_from_spec  # type: ignore 
    1717    def load_module_from_path(fullname, path): 
     18        """load module from *path* as *fullname*""" 
    1819        spec = spec_from_file_location(fullname, path) 
    1920        module = module_from_spec(spec) 
     
    2425    import imp 
    2526    def load_module_from_path(fullname, path): 
     27        """load module from *path* as *fullname*""" 
    2628        module = imp.load_source(fullname, path) 
    2729        #os.unlink(path+"c")  # remove the automatic pyc file 
     
    2931 
    3032def load_custom_kernel_module(path): 
     33    """load SAS kernel from *path* as *sasmodels.custom.modelname*""" 
    3134    # Pull off the last .ext if it exists; there may be others 
    3235    name = basename(splitext(path)[0]) 
Note: See TracChangeset for help on using the changeset viewer.