Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Duplicate code for computing station metrics and using parallel processing #1017

@baagaard-usgs

Description

@baagaard-usgs

Computing station metrics is one of the slowest steps when processing datasets (if you use multiple processes), because it runs on a single process. In looking to see how we might make it run in parallel, I believe I found duplicate code for computing station metrics.

We have the subcommand code subcommands.compute_station_metrics._event_station_metrics. This code would need refactoring to run in parallel.

There is also station_summary.StationSummary.compute_station_metrics. This one looks like it might be setup to be able to be called in parallel as the code layout appears to match compute_waveform_metrics.

@emthompson-usgs Can you look at these routines to see if there are significant differences? The subcommand code looks like it is newer, so it may do things the StationSummary code does not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions