Skip to content

Commit

Permalink
Merge pull request e-mission#924 from shankari/install_jq_properly
Browse files Browse the repository at this point in the history
🐳 Install jq properly so that we can use it later
  • Loading branch information
shankari authored Jun 25, 2023
2 parents dc2394f + f90d7e4 commit e7efadb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ RUN apt-get install -y -qq wget
# RUN apt-get -y install nano vim

# install jq to parse json within bash scripts
RUN curl -o /usr/local/bin/jq http://stedolan.github.io/jq/download/linux64/jq && \
chmod +x /usr/local/bin/jq
RUN apt-get install jq

# cleanup
RUN apt-get -y remove --purge build-essential
Expand Down
2 changes: 1 addition & 1 deletion emission/analysis/plotting/composite_trip_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def get_sections_for_confirmed_trip(ct):
# on the phone, we don't need lists of 'speeds' and 'distances'
# for every section, and they can get big - so let's save some bandwidth
for section in sections:
section["sensed_mode_str"] = sel_section_mapper(section["data"]["sensed_mode"])
section["data"]["sensed_mode_str"] = sel_section_mapper(section["data"]["sensed_mode"])
del section["data"]["speeds"]
del section["data"]["distances"]
return sections

0 comments on commit e7efadb

Please sign in to comment.