diff --git a/Data collection/big_to_couch.py b/Data collection/big_to_couch.py index dd53fbf7bb2ccff682d04db3ede559e14d3b5cb4..c53f6e9ea870a021282fe3ad9c0612323c668d85 100644 --- a/Data collection/big_to_couch.py +++ b/Data collection/big_to_couch.py @@ -12,17 +12,12 @@ db = couchserver['live_demo2'] coords = [] areas = {} -with open('sets.json') as f: +with open('./comp90024/Data collection/sets.json') as f: for line in f: c = json.loads(line) areas[c['region']] = c['box'] -areas = {} -with open('sets.json') as f: - for line in f: - c = json.loads(line) - areas[c['region']] = c['box'] def insideArea(x,y,poly): ### diff --git a/Data collection/tweet_gatherer_app.py b/Data collection/tweet_gatherer_app.py index d63e6d4b9bfd53894221178c118bf6368c259aa5..7a13cbd0414f533b7eb216e7cd0ccb1233d80097 100644 --- a/Data collection/tweet_gatherer_app.py +++ b/Data collection/tweet_gatherer_app.py @@ -80,7 +80,7 @@ class StreamListener(tweepy.StreamListener): if __name__ == "__main__": sets = [] - with open('sets.json', encoding = 'utf-8') as setdata: + with open('./comp90024/Data collection/sets.json', encoding = 'utf-8') as setdata: for line in setdata: sets.append(json.loads(line))