How to use the gillespy2.Species function in gillespy2

To help you get started, we’ve selected a few gillespy2 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github StochSS / stochss / stochss / handlers / util / run_model.py View on Github external
args : dict
            A json representation of a species.
        '''
        name = args['name'].strip()
        value = args['value']
        if not is_ode:
            mode = args['mode']
        else:
            mode = 'continuous'
        switch_tol = args['switchTol']
        if args['isSwitchTol']:
            switch_min = 0
        else:
            switch_min = args['switchMin']

        return Species(name=name, initial_value=value, mode=mode, switch_tol=switch_tol, switch_min=switch_min)