def get_run_filename(): return os.path.join(misc.runs_dir(), "run%d.h5" % misc.get_run_number())
import orca import shutil import os import models, utils from urbansim.utils import misc, networks import output_indicators with open(os.path.join(os.getenv('DATA_HOME', "."), 'RUNNUM'), 'r') as f: start_num = int(f.read()) for i in xrange(start_num, 1, -1): data_out = os.path.join(misc.runs_dir(), "run%d.h5" % i) if os.path.isfile(data_out): print "runnum:", i break data_out = './runs/run4032_hu_hh_base_2_gq_jobs_v5_hhpop_agegrp.h5' output_indicators.main(data_out)
def get_run_filename(): return os.path.join(misc.runs_dir(), "run%d.h5" % misc.get_run_number())
def get_run_filename(): if 'run_no' not in sim.list_injectables(): get_run_no() return os.path.join(misc.runs_dir(), "run%d.h5" % sim.get_injectable("run_no"))
import orca import shutil import os import models, utils from urbansim.utils import misc, networks import output_indicators data_out = os.path.join(misc.runs_dir(), "cost_shift_%d.h5" % misc.get_run_number()) print data_out orca.run(["refiner", 'build_networks', "neighborhood_vars"] + orca.get_injectable('repm_step_names') + # In place of ['nrh_simulate', 'rsh_simulate'] ["increase_property_values"]) # Hack to make more feasibility orca.run( [ "neighborhood_vars", "households_transition", "fix_lpr", "households_relocation", "jobs_transition", "jobs_relocation", "scheduled_demolition_events", "random_demolition_events", "scheduled_development_events", "feasibility", "residential_developer", "non_residential_developer" ] + orca.get_injectable('repm_step_names') + # In place of ['nrh_simulate', 'rsh_simulate'] ["increase_property_values"] + # Hack to make more feasibility orca.get_injectable('hlcm_step_names') + orca.get_injectable('elcm_step_names') + [ "elcm_home_based",