Skip to content

Commit bf2a015

Browse files
authored
Merge pull request #86 from yonran/fetch_data
Fetch data
2 parents 59d8fea + 6de20aa commit bf2a015

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

all.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# run a full package of scenarios
66

77
for num in [0, 1, 3, 4, 5]:
8-
os.system('python run.py -s %d' % num)
8+
os.system('python baus.py -s %d' % num)
99

1010
with open('RUNNUM', 'r') as f:
1111
runnum = f.readline()

baus.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import argparse
1010
import warnings
1111
from baus.utils import compare_summary
12-
from scripts.check_feedback import check_feedback
1312

1413
warnings.filterwarnings("ignore")
1514

baus/datasources.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,14 @@ def fetch_from_s3(settings):
112112
s3_settings = settings["s3_settings"]
113113

114114
conn = boto.connect_s3()
115-
bucket = conn.get_bucket(s3_settings["bucket"])
115+
bucket = conn.get_bucket(s3_settings["bucket"], validate=False)
116116

117117
for file in s3_settings["files"]:
118118
file = os.path.join("data", file)
119119
if os.path.exists(file):
120120
continue
121121
print "Downloading " + file
122-
key = bucket.get_key(file)
122+
key = bucket.get_key(file, validate=False)
123123
key.get_contents_to_filename(file)
124124

125125

@@ -362,7 +362,7 @@ def print_error_if_not_available(store, table):
362362
if table not in store:
363363
raise Exception(
364364
"%s not found in store - you need to preprocess" % table +
365-
" the data with:\n python run.py --mode preprocessing -c")
365+
" the data with:\n python baus.py --mode preprocessing -c")
366366
return store[table]
367367

368368

features.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
## Run management
1414

15-
* Ability to run different model sets, output to Slack and web maps (in run.py)
15+
* Ability to run different model sets, output to Slack and web maps (in baus.py)
1616

1717
## Standard (or extensions to) UrbanSim features
1818

requirements.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
-e git+https://github.com/synthicity/urbansim.git@151bfbf4272545fa0e20a458f1d552d3bfdf00fa#egg=urbansim
22
-e git+https://github.com/synthicity/urbansim_defaults.git@f7d9b8dcf7fde27314dcf80956b3470f3d88f5c6#egg=urbansim_defaults
33
-e git+https://github.com/UDST/orca.git@73f80f6345f282d8c836e8fcd11b22264cad0ac8#egg=orca
4+
pandana
45
#-e git+https://github.com/UDST/pandana.git@8f24b8a1b7539c95b51153e9954f755a7116089b#egg=pandana
56
# using this version of anaconda http://repo.continuum.io/archive/Anaconda2-4.0.0-Linux-x86_64.sh
67
# to install:
78
# 1) get that anaconda and install
89
# 2) clone master (or release) of bayarea_urbansim
910
# 3) pip install -r requirements.txt
10-
# run by calling `python run.py &`
11+
# run by calling `python baus.py &`
12+
boto

0 commit comments

Comments
 (0)