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

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/c/h/chitwanabm-1.5/chitwanabm/agents.py   chitwanabm(Download)
 
from chitwanabm import rc_params
from chitwanabm.statistics import calc_probability_death, \
        calc_probability_migration_simple, calc_first_birth_time, \
        calc_birth_interval, calc_hh_area, calc_des_num_children, \
                    first_birth_flag = True
            elif rcParams['submodel.parameterization.firstbirth'] == 'zvoleff':
                if (np.random.rand() < calc_first_birth_prob_zvoleff(self, time)) & ((time - self._marriage_time) >= 9/12.):
                    first_birth_flag = True
            else: