Skip to content

Commit

Permalink
add skims file setting to make inputs more transparent
Browse files Browse the repository at this point in the history
  • Loading branch information
bstabler committed Jun 23, 2016
1 parent bf20848 commit 7d3e7db
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
4 changes: 2 additions & 2 deletions activitysim/defaults/tables/skims.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@

# cache this so we don't open it again and again - skim code is not closing it....
@orca.injectable(cache=True)
def omx_file(data_dir):
def omx_file(data_dir, settings):
logger.debug("opening omx file")
return omx.openFile(os.path.join(data_dir, 'data', "nonmotskm.omx"))
return omx.openFile(os.path.join(data_dir, 'data', settings["skims_file"]))


@orca.injectable()
Expand Down
11 changes: 7 additions & 4 deletions example/configs/settings.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
#input data store and skims
store: mtc_asim.h5
skims_file: nonmotskm.omx

#number of households to simulate
households_sample_size: 1000

# these are the defaults
# preload_3d_skims: False

#trace household id; comment out for no trace
trace_hh_id: 961042
households_sample_size: 1000

#internal settings
preload_3d_skims: True
chunk_size: 10000

# area_types less than this are considered urban
Expand Down
11 changes: 7 additions & 4 deletions sandbox/configs/settings.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
#input data store and skims
store: mtc_asim.h5
skims_file: nonmotskm.omx

#number of households to simulate
households_sample_size: 1000

#trace household id; comment out for no trace
trace_hh_id: 961042

# these are the defaults
# preload_3d_skims: False

#internal settings
preload_3d_skims: True
households_sample_size: 1000
chunk_size: 10000

# area_types less than this are considered urban
urban_threshold: 4
Expand Down

0 comments on commit 7d3e7db

Please sign in to comment.