usgs / groundmotion-processing

Parsing and processing ground motion data
Other
54 stars 41 forks source link

Station map error with new check_stream config option #1050

Closed gferragu closed 1 year ago

gferragu commented 1 year ago

When setting any_trace_failures = False under the check_stream section of the config file, station map plotting fails.

This is due to dataframe construction in report_utils.py that houses stream and trace parameters passed into the Javascript callback during Folium plotting.

If streams with a single failed trace are no longer considered failed, there's a mismatch in array lengths when making the dataframe.

An adjustment should be made to ensure this is tolerated