Skip to content

Commit

Permalink
move link files to matrices data subfolders
Browse files Browse the repository at this point in the history
  • Loading branch information
toliwaga committed Mar 11, 2016
1 parent 059b53c commit d9fbd9b
Show file tree
Hide file tree
Showing 9 changed files with 40,913 additions and 7 deletions.
4 changes: 2 additions & 2 deletions bca4abm/processors/link.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ def eval_link_spec(link_spec, link_file_name, data_dir, link_file_column_map,

for scenario in ['base', 'build']:

link_data_dir = os.path.join(data_dir, scenario)
link_data_subdir = 'base-matrices' if scenario == 'base' else 'build-matrices'

links_df = read_csv_file(link_data_dir,
links_df = read_csv_file(data_dir=os.path.join(data_dir, link_data_subdir),
file_name=link_file_name,
column_map=link_file_column_map)

Expand Down
File renamed without changes.
File renamed without changes.
20,445 changes: 20,445 additions & 0 deletions bca4abm/tests/data/build-matrices/link_ampk.csv

Large diffs are not rendered by default.

20,462 changes: 20,462 additions & 0 deletions bca4abm/tests/data/build-matrices/link_daily.csv

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions bca4abm/tests/data/persons.csv
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ hhno,pno,pptyp,pagey,pgend,pwtyp,ptpass,ppaidprk,expfactor
80,1,2,47,2,2,0,0,10000
80,2,4,48,1,0,0,1,10000
80,3,7,14,2,0,0,1,10000
#80,4,7,10,2,0,0,1,10000
80,4,7,90,2,0,0,1,10000
80,4,7,10,2,0,0,1,10000
#80,4,7,90,2,0,0,1,10000
90,1,2,37,2,2,0,1,10000
90,2,1,37,1,1,0,0,10000
90,3,7,6,1,0,0,1,10000
Expand Down
2 changes: 1 addition & 1 deletion devtools/harness.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
# orca.run(['auto_ownership_processor'])
orca.run(['physical_activity_processor'])
#orca.run(['aggregate_trips_processor'])
#orca.run(['link_daily_processor'])
orca.run(['link_daily_processor'])
#orca.run(['link_processor'])

orca.run(['write_results'])
Expand Down
Binary file removed doc/~$bca4abm-sample-data.xlsx
Binary file not shown.
3 changes: 1 addition & 2 deletions example/data/persons.csv
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ hhno,pno,pptyp,pagey,pgend,pwtyp,ptpass,ppaidprk,expfactor
80,1,2,47,2,2,0,0,10000
80,2,4,48,1,0,0,1,10000
80,3,7,14,2,0,0,1,10000
#80,4,7,10,2,0,0,1,10000
80,4,7,90,2,0,0,1,10000
80,4,7,10,2,0,0,1,10000
90,1,2,37,2,2,0,1,10000
90,2,1,37,1,1,0,0,10000
90,3,7,6,1,0,0,1,10000
Expand Down

0 comments on commit d9fbd9b

Please sign in to comment.