Changeset e62a134 in sasmodels for sasmodels/modelinfo.py


Ignore:
Timestamp:
Apr 8, 2016 4:48:35 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:
49d2308
Parents:
0d99a6a
Message:

add type hinting to model_test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/modelinfo.py

    r0d99a6a re62a134  
    640640    info.variant_info = getattr(kernel_module, 'variant_info', None) 
    641641    info.source = getattr(kernel_module, 'source', []) 
     642    # TODO: check the structure of the tests 
    642643    info.tests = getattr(kernel_module, 'tests', []) 
    643644    info.ER = getattr(kernel_module, 'ER', None) 
     
    712713    source = None           # type: List[str] 
    713714    tests = None            # type: List[TestCondition] 
    714     ER = None               # type: Optional[Callable[[np.ndarray, ...], float]] 
    715     VR = None               # type: Optional[Callable[[np.ndarray, ...], float]] 
     715    ER = None               # type: Optional[Callable[[np.ndarray, ...], np.ndarray]] 
     716    VR = None               # type: Optional[Callable[[np.ndarray, ...], Tuple[np.ndarray, np.ndarray]]] 
    716717    form_volume = None      # type: Optional[Callable[[np.ndarray, ...], float]] 
    717718    Iq = None               # type: Optional[Callable[[np.ndarray, ...], np.ndarray]] 
Note: See TracChangeset for help on using the changeset viewer.