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, \
        for n in xrange(num_in_migr_households):
            # Randomly create a household of this size
            hh_size = calc_inmigrant_household_size()
            hh_ethnicity = calc_inmigrant_household_ethnicity()
            np.random.shuffle(household_list)

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