Skip to content

Commit

Permalink
add key to get confirmed trip in read_data (#798)
Browse files Browse the repository at this point in the history
* add key to get confirmed trip in read_data

* modify read_data function
  • Loading branch information
corinne-hcr authored Feb 20, 2021
1 parent b53f8df commit f4ed2a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions emission/analysis/modelling/tour_model/cluster_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
"""

#read the data from the database.
def read_data(uuid=None):
trips = esda.get_entries(esda.CLEANED_TRIP_KEY, uuid,
def read_data(uuid=None,key=esda.CLEANED_TRIP_KEY):
trips = esda.get_entries(key, uuid,
time_query=None, geo_query=None)
logging.info("After reading data, returning %s trips" % len(trips))
return trips
Expand Down

0 comments on commit f4ed2a7

Please sign in to comment.