Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ensemble converter bug #410

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

fix ensemble converter bug #410

wants to merge 5 commits into from

Conversation

pavlis
Copy link
Collaborator

@pavlis pavlis commented Apr 12, 2023

This branch fixes a serious bug in handling ensemble data. When obspy functions were applied to ensembles the previous version obspy functions would create output that caused
the database save method to abort. The problem was related to
a subtle mishandling of an internal set container used to handle the
conversion of ensemble Metadata. This commit fixes the problem
but hasn't been verified with pytest. It shouldn't fail but could. My fix was tested on a subset of the 2012 usarray data and it solved the problem. Look at my fixes with a bit of skepticism to see if there is a cleaner solution. The way the decorators are interwoven made this hard to track so changes from what I suggest should be done cautiously.

ensemble data with obspy functions would create output that caused
the database save method to abort.   The problem was related to
a subtle mishandling of an internal set container used to handle the
conversion of ensemble Metadata.  This commit fixes the problem
but hasn't been verified with pytest.  It shouldn't fail but could.
@Aristoeu Aristoeu mentioned this pull request Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants