Skip to content

Occasional crashes in broadband simulation due to duplicate stations #107

Description

@lispandfound

Sometimes EMOD3D produces duplicate stations in output. When it does this broadband simulation will crash with a ValueError. When people ask me about this issue I have suggested manually loading the low frequency outputs, de-duplicating them, and dumping them into broadband outputs. This is based on the observation that the waveforms are identical for all cases of this issue I have observed. While I think the current behaviour of bb-sim, i.e. crashing, is consistent with the idea that silently dropping stations is dangerous I believe we should have a more ergonomic alternate behaviour.

What to change

Introduce a flag to bb-sim that, when toggled, drops duplicates using the xarray drop_duplicates method. It should report when it drops duplicates. The default behaviour is the current code which crashes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions