1. Add config options to control more asserts (commit: a2acdfbf9c44953ab5390667572abc52350af68f) (details)
  2. Add the new settings to the config sample file as well (commit: a1720447cf3200fcd8c70df6670f114ebb2f68fc) (details)
Commit a2acdfbf9c44953ab5390667572abc52350af68f by shankari
Add config options to control more asserts
While developing the pipeline, I added several asserts to flag "issues
that need to be investigated" while retaining fallbacks so that we could
comment out the assertions if there was no time to investigate.
As other groups start using this, they don't have the energy and skill
to invesigate issues, and I certainly don't have the energy to
investigate every single one of them.
Let's add the ability to ignore these asserts in production, replacing
them by log errors instead.
I have not added config options for the zig-zag detection asserts since
we have not encountered them so far, but everything else should be
Testing done:
without this change, ran into the error reported in
After setting `output.conversion.validityAssertions` to false, I get
(emission) C02KT61MFFT0:e-mission-server shankari$ ./e-mission-py.bash
bin/debug/ -e test-subway-tram Connecting to
database URL localhost google maps key not configured, falling back to
nominatim transit stops query not configured, falling back to default
0f1e49b9-c928-43d5-a079-70be130d4a94: moving to long term**********
0f1e49b9-c928-43d5-a079-70be130d4a94: filter accuracy if
needed********** 2019-08-05T14:44:58.190401-07:00**********UUID
0f1e49b9-c928-43d5-a079-70be130d4a94: segmenting into trips**********
0f1e49b9-c928-43d5-a079-70be130d4a94: segmenting into sections**********
RuntimeWarning: invalid value encountered in double_scalars
sm.update({"trip_pct": (curr_section_time * 100)/total_trip_time})
0f1e49b9-c928-43d5-a079-70be130d4a94: smoothing sections**********
UserWarning: DataFrame columns are not unique, some columns will be
"columns will be omitted.", UserWarning)
0f1e49b9-c928-43d5-a079-70be130d4a94: cleaning and resampling
timeline********** 2019-08-05T14:45:25.036210-07:00**********UUID
0f1e49b9-c928-43d5-a079-70be130d4a94: inferring transportation
mode********** 2019-08-05T14:46:09.598051-07:00**********UUID
0f1e49b9-c928-43d5-a079-70be130d4a94: checking active mode trips to
autocheck habits**********
0f1e49b9-c928-43d5-a079-70be130d4a94: storing views to cache**********
(commit: a2acdfbf9c44953ab5390667572abc52350af68f)
The file was modifiedemission/analysis/classification/inference/mode/ (diff)
The file was modifiedemission/analysis/plotting/geojson/ (diff)
The file was modifiedemission/analysis/ (diff)
The file was modifiedemission/analysis/intake/cleaning/ (diff)
Commit a1720447cf3200fcd8c70df6670f114ebb2f68fc by shankari
Add the new settings to the config sample file as well
(commit: a1720447cf3200fcd8c70df6670f114ebb2f68fc)
The file was modifiedconf/analysis/debug.conf.json.sample (diff)