From 00f40c03d7c5697612780bdbfac12f4201f1712f Mon Sep 17 00:00:00 2001 From: Felipe Ramos <framosmorale@student.unimelb.edu.au> Date: Fri, 28 May 2021 15:17:25 +1000 Subject: [PATCH] update paths --- Data collection/big_to_couch.py | 7 +------ Data collection/tweet_gatherer_app.py | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/Data collection/big_to_couch.py b/Data collection/big_to_couch.py index dd53fbf..c53f6e9 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 d63e6d4..7a13cbd 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)) -- GitLab