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

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

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 handle in migrating households
        n_inmigr_hh = {}
        num_in_migr_households = calc_num_inmigrant_households()
        household_list = self.get_households()
        for n in xrange(num_in_migr_households):

src/c/h/chitwanabm-1.5/chitwanabm/test.py   chitwanabm(Download)
 
    logger.info("Plotting num in migrant households test histogram")
    from chitwanabm.statistics import calc_num_inmigrant_households
    retvalues = []
    for n in xrange(sample_size):
        retvalues.append(calc_num_inmigrant_households())