Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BASIS data updates #321

Open
wants to merge 53 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
91a8192
updates with v0 release data
theocharides Apr 21, 2023
158a1c7
add separated dev projects strategy projects input
theocharides May 10, 2023
27f1553
update buildings table with v0b
theocharides May 10, 2023
72c11ab
update growth_geographies to v0b
theocharides May 10, 2023
8043276
update travel_model_zones to v0b
theocharides Jun 15, 2023
a69267c
update boc to v0c
theocharides Jun 27, 2023
d7b065a
update buildings table to v0c
theocharides Jun 27, 2023
72e42c1
update dev pipeline tables to v0c
theocharides Jun 27, 2023
d704faf
move unique parcel identifier back to parcel_id
theocharides Jun 27, 2023
8fd9e81
update growth_geographies to v0c
theocharides Jun 27, 2023
7952241
update nodev, streamline parcel_filter component
theocharides Jun 28, 2023
90ec562
update parcels to v0c
theocharides Jun 28, 2023
e3194f3
update travel_model_zones to v0c
theocharides Jun 29, 2023
f2d2c3b
add a residential_units input table
theocharides Jun 30, 2023
8bdf062
add superdistrict names in summaries only
theocharides Jun 30, 2023
a1de6d5
one more sd fix
theocharides Jun 30, 2023
66342e7
reverse accidental docs update
theocharides Jul 3, 2023
239aab6
fully remove the pre-processing script with the new data
theocharides Jul 19, 2023
6e118da
move residential unit assignment to BASIS
theocharides Jul 19, 2023
7cc2f44
fully remove paths.yaml, mapping.yaml, and update datastore
theocharides Jul 20, 2023
6c977a0
consolidate years variables
theocharides Jul 20, 2023
9bcddb1
update the model base year in the summaries
theocharides Jul 20, 2023
1cb57c5
update additional code using the model base year
theocharides Jul 20, 2023
387e23f
remove hardcoding of initial year and final year in model
theocharides Jul 20, 2023
af3dd94
update inputs doc
theocharides Jul 24, 2023
22809fb
update the user guide doc
theocharides Jul 24, 2023
ce49c96
Update README.md
theocharides Jul 24, 2023
4bb5656
Merge remote-tracking branch 'origin/clean_summaries' into basis_data…
theocharides Jul 26, 2023
c33cc23
add v0d datasets
theocharides Aug 2, 2023
7fe9797
remove base year models since it's not a simulation year
theocharides Aug 2, 2023
a8e0fab
maintain hazards models summaries
theocharides Aug 2, 2023
5ea2084
don't write slr summary if model doesn't run
theocharides Aug 2, 2023
1299922
Merge branch 'main' into basis_data_update
theocharides Aug 10, 2023
61c8c1c
add new slr files
theocharides Aug 14, 2023
b5b481d
add v0e datasets
theocharides Aug 14, 2023
585a024
remove old tm logsum file from code
theocharides Aug 14, 2023
85aae32
continue outdated logsums file removal
theocharides Aug 14, 2023
4597172
add updated bart stations for pandana
theocharides Aug 15, 2023
1d265c2
update inputs
theocharides Sep 5, 2023
4fd6605
new basis inputs documentation
theocharides Sep 5, 2023
a6ded28
Merge branch 'main' into basis_data_update
theocharides Sep 5, 2023
7c12eb8
fixes
theocharides Sep 18, 2023
98a4446
add store to table definitions
theocharides Sep 20, 2023
0e24d2e
update settings needed to do some checks (need to be removed)
theocharides Sep 20, 2023
b5103cd
Merge branch 'viz_interim_based_on_new_inputs' into basis_data_update
theocharides Sep 20, 2023
83e5e73
fix merge overrides
theocharides Sep 20, 2023
8e0862f
more updates after viz merge
theocharides Sep 20, 2023
f2b4d7b
update iter years
theocharides Sep 20, 2023
e690670
update model summaries for BAUS Run v1
theocharides Sep 26, 2023
a83f3c0
tm summary fix
theocharides Oct 31, 2023
693e127
add slr year argument
theocharides Oct 31, 2023
a6d0ad4
institutions updates
theocharides Oct 31, 2023
d1d1d29
nodev updates
theocharides Oct 31, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 13 additions & 64 deletions baus.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import traceback
from baus import \
datasources, variables, models, subsidies, ual, slr, earthquake, \
utils, preprocessing
utils
from baus.tests import validation
from baus.summaries import \
core_summaries, geographic_summaries, affordable_housing_summaries, \
Expand All @@ -25,7 +25,7 @@

MODE = "simulation"
EVERY_NTH_YEAR = 5
IN_YEAR, OUT_YEAR = 2010, 2050
IN_YEAR, OUT_YEAR = 2020, 2050


SLACK = "URBANSIM_SLACK" in os.environ
Expand Down Expand Up @@ -96,62 +96,12 @@ def run_models(MODE):


elif MODE == "simulation":

def get_baseyear_models():

baseyear_models = [

"slr_inundate",
"slr_remove_dev",
"eq_code_buildings",
"earthquake_demolish",

"neighborhood_vars",
"regional_vars",

"rsh_simulate",
"rrh_simulate",
"nrh_simulate",
"assign_tenure_to_new_units",

"household_relocation",
"households_transition",

"reconcile_unplaced_households",
"jobs_transition",

"hlcm_owner_lowincome_simulate",
"hlcm_renter_lowincome_simulate",

"hlcm_owner_simulate",
"hlcm_renter_simulate",

"hlcm_owner_simulate_no_unplaced",
"hlcm_owner_lowincome_simulate_no_unplaced",
"hlcm_renter_simulate_no_unplaced",
"hlcm_renter_lowincome_simulate_no_unplaced",

"reconcile_placed_households",

"elcm_simulate",

"price_vars"]

if not run_setup["run_slr"]:
baseyear_models.remove("slr_inundate")
baseyear_models.remove("slr_remove_dev")

if not run_setup["run_eq"]:
baseyear_models.remove("eq_code_buildings")
baseyear_models.remove("earthquake_demolish")

return baseyear_models

def get_baseyear_summary_models():

baseyear_summary_models = [

"simulation_validation",
# "simulation_validation",

"parcel_summary",
"building_summary",
Expand All @@ -163,17 +113,17 @@ def get_baseyear_summary_models():

"geographic_summary",

"growth_geography_metrics",
"deed_restricted_units_metrics",
"household_income_metrics",
"equity_metrics",
"jobs_housing_metrics",
# "growth_geography_metrics",
# "deed_restricted_units_metrics",
# "household_income_metrics",
# "equity_metrics",
# "jobs_housing_metrics",
"jobs_metrics",
"slr_metrics",
"earthquake_metrics",
"greenfield_metrics",
# "earthquake_metrics",
# "greenfield_metrics",

"taz1_summary",
# "taz1_summary",
"maz_marginals",
"maz_summary",
"taz2_marginals",
Expand Down Expand Up @@ -358,10 +308,9 @@ def get_simulation_visualization_models():

return simulation_visualization_models

baseyear_models = get_baseyear_models()
if run_setup["run_summaries"]:
baseyear_models.extend(get_baseyear_summary_models())
orca.run(baseyear_models, iter_vars=[IN_YEAR])
baseyear_summary_models = get_baseyear_summary_models()
orca.run(baseyear_summary_models, iter_vars=[IN_YEAR])

years_to_run = range(IN_YEAR+EVERY_NTH_YEAR, OUT_YEAR+1, EVERY_NTH_YEAR)
simulation_models = get_simulation_models()
Expand Down
Loading