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

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

src/c/h/chitwanabm-1.5/chitwanabm/initialize.py   chitwanabm(Download)
    # Empty households or neighborhoods could occur due to people excluded due 
    # to missing data, or due to people excluded because of their ethnicity.
    for region in model_world.iter_regions():
        for neighborhood in region.iter_agents():
            for household in neighborhood.iter_agents():
                if household.num_members() == 0:
                    logger.warning("Household %s skipped because it has no members"%(household.get_ID()))
                    neighborhood.remove_agent(household)
    for region in model_world.iter_regions():