Skip to content
New issue

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

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

Already on GitHub? # to your account

Bugfix save to ds #10

Merged
merged 2 commits into from
Aug 11, 2022
Merged

Bugfix save to ds #10

merged 2 commits into from
Aug 11, 2022

Conversation

bch0w
Copy link
Member

@bch0w bch0w commented Aug 11, 2022

What does this PR do?

Small bug fix where setting Pyatoa's config option save_to_ds as False would not allow the Manager to write to the dataset with its write function which is not intended behavior. save_to_ds was meant to prevent automatic saving which occurs during each of the individual processing steps

Why was it initiated? Any relevant Issues?

This was causing some tests to fail in SeisFlows as misfit windows could not be saved during Pyaflowa preprocessing

PR Checklist

  • develop base branch selected?
  • This PR is not directly related to an existing issue (which has no PR yet).
  • All tests still pass.
  • Any new features or fixed regressions covered by new tests.
  • Any new or changed features have been fully documented.
  • Significant changes have been added to CHANGELOG.md.
  • First time contributors have added your name to CONTRIBUTORS.txt .

bch0w added 2 commits August 2, 2022 12:30
… if config.save_to_ds is set to False. This is unintended because write() is called explicitely and should force write, whereas save_to_ds is used to stop passive writing during the processing phase.

Also threw in a check for ASDFDataSets opened in read-only during write() which would throw an error
@bch0w bch0w merged commit 285167c into devel Aug 11, 2022
@bch0w bch0w deleted the bugfix_save_to_ds branch August 11, 2022 20:11
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant