Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(7)  |  Call(5)  |  Derive(0)  |  Import(2)

src/9/m/9ML-0.1.0/nineml/abstraction_layer/component/component.py   9ML(Download)
from dynamics import StateVariable
from ports import EventPort
from nineml.utility import check_list_contain_same_items
 
 
        # EventPort, StateVariable and Parameter Inference:
        inferred_struct = InterfaceInferer(dynamics, analog_ports=analog_ports)
        inf_check = lambda l1, l2, desc: check_list_contain_same_items( l1, l2,
                desc1='Declared', desc2='Inferred', ignore=['t'], desc=desc) 
 

src/9/m/9ML-0.1.0/test/unit/nineml_test/utility/INIT_test.py   9ML(Download)
    def test_check_list_contain_same_items(self):
        # Signature: name(lst1, lst2, desc1='', desc2='', ignore=[], desc='')
		# No Docstring
 
        from nineml.utility import check_list_contain_same_items
        # Good cases:
        check_list_contain_same_items(
            ['in','some','funny','order',], 
            ['some','funny','order','in'],
            )
 
        check_list_contain_same_items(
            [1,2,3,4,5], 
 
        check_list_contain_same_items(
            [1,3,4,5,2], 
            [1,2,3,4,5],
            )
 
        # Chack ignoring:
        check_list_contain_same_items(
            [1,3,4,5,2],