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

All Samples(11)  |  Call(10)  |  Derive(0)  |  Import(1)

src/9/m/9ML-0.1.0/nineml/abstraction_layer/component/dynamics.py   9ML(Download)
        # Check for double definitions:
        td_dep_vars = [td.dependent_variable for td in self._time_derivatives]
        nineml.utility.assert_no_duplicates(td_dep_vars)
 
 

src/9/m/9ML-0.1.0/nineml/abstraction_layer/component/component.py   9ML(Download)
    def _resolve_transition_regime_names(self):
        # Check that the names of the regimes are unique:
        names = [ r.name for r in self.regimes ]
        nineml.utility.assert_no_duplicates(names)
 

src/9/m/9ML-0.1.0/nineml/abstraction_layer/validators/cv_general.py   9ML(Download)
        self.visit(component)
 
        nineml.utility.assert_no_duplicates(self.all_objects)
 
 
    def action_regime(self, regime, namespace, **kwargs):
        event_triggers = [on_event.src_port_name for on_event in regime.on_events ] 
        nineml.utility.assert_no_duplicates( event_triggers )
 
 

src/9/m/9ML-0.1.0/nineml/abstraction_layer/validators/cv_regimenames.py   9ML(Download)
    def action_componentclass(self,componentclass, namespace):
        regime_names = [r.name for r in componentclass.regimes]
        nineml.utility.assert_no_duplicates(regime_names)
 

src/9/m/9ML-0.1.0/test/unit/nineml_test/utility/INIT_test.py   9ML(Download)
		# It raises an `NineMLRuntimeError` if the lengths are not equal.
 
        from nineml.utility import assert_no_duplicates
        from nineml.exceptions import NineMLRuntimeError
 
                )
 
        assert_no_duplicates( [1,2,3,4] )
        assert_no_duplicates( ['1','2','3','4'] )
 
        assert_no_duplicates( [None] )
        assert_no_duplicates( [True] )