Changeset 8d62008 in sasmodels for sasmodels/modelinfo.py


Ignore:
Timestamp:
Apr 15, 2016 12:16:41 PM (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:
8f6817d
Parents:
3599d36
Message:

remove circular dependency between details/modelinfo; fix compare Calculator type hint

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/modelinfo.py

    ra5b8477 r8d62008  
    1313 
    1414import numpy as np  # type: ignore 
    15  
    16 from .details import mono_details 
    1715 
    1816# Optional typing 
     
    2220    pass 
    2321else: 
    24     from .details import CallDetails 
    2522    Limits = Tuple[float, float] 
    2623    #LimitsOrChoice = Union[Limits, Tuple[Sequence[str]]] 
     
    658655    info.hidden = getattr(kernel_module, 'hidden', None) # type: ignore 
    659656 
    660     # Precalculate the monodisperse parameter details 
    661     info.mono_details = mono_details(info) 
    662657    return info 
    663658 
     
    811806    #: the SESANS correlation function.  Note: not currently implemented. 
    812807    sesans = None           # type: Optional[Callable[[np.ndarray], np.ndarray]] 
    813     #: :class:details.CallDetails data for mono-disperse function evaluation. 
    814     #: This field is created automatically by the model loader, and should 
    815     #: not be defined as part of the model definition file. 
    816     mono_details = None     # type: CallDetails 
    817808 
    818809    def __init__(self): 
Note: See TracChangeset for help on using the changeset viewer.