usgs / groundmotion-processing

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

Redundant download of ComCat event information in assemble subcommand #1030

Closed baagaard-usgs closed 1 year ago

baagaard-usgs commented 1 year ago

Describe the bug

The gmrecords assemble subcommand currently gets the events as a list of ScalarEvent. However, it passes only the event id to the routine that assembles the event. This means that when we assemble the event, the function must fetch the event information from ComCat.

Expected behavior

Pass the ScalarEvent object to the assemble command rather than just the event id.