This PR improves the Manager and Inspector classes for SeisFlows Inversion assessment
Inspector
Changes default inspector save name from 'default' to 'inspector'
Changes default Inspector verbosity log level to 'CRITICAL'
Feature: Inspector.generate_report() auto runs a number of plotting functions that give an assessment of the current inversion. This is a work in progress but provides template for future work
Bugfix: Iterations were not being properly appended when getting source adn receiver information
Improves evaluation validation when reading from datasets
Isolate now allows separating by network
Manager
Bugfix function write_to_dataset which was previously allowing errors to pass through silently. New ASDF utility functions provide better flow control when writing data/metadata to ASDFDataSets
New log message when creating windows that prints out the window stats (cc, delta_t, dlna)
Improved function retrieve_windows_from_dataset to allow for slection by component
New feature retrieve_windows_from_dataset to allow revalidation of windows, windows that do not pass internal criteria checks are removed when revalidate==True
Better loggin for revalidation and window criteria
ASDF Utils
New ASDF Utils for adding all Manager objects to ASDFDataSet with better error catching and logging
Improved ASDF Deletion tools used for overwriting ASDFDataSets
Plotting
WaveMaker plotting class adds sign (+/-) to time shift because previously it was easy to miss a negative sign
New plotting class WaveTrain combines old 'improve_wave' and 'comp_wave', used to plot waveform improvements from ASDFDataSets
Removes improve_wave and comp_wave plotting classes which were outdated and ahrdcoded
Why was it initiated? Any relevant Issues?
The Inspector had a lot of nice functions for assessing an inversion but had not been updated much, so some upgrades were necessary. Similarly some utils and plotting functions needed some update now that I'm running inversions again.
No relevant issues
PR Checklist
[x] develop base branch selected?
[x] This PR is not directly related to an existing issue (which has no PR yet).
[x] 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 .
What does this PR do?
This PR improves the Manager and Inspector classes for SeisFlows Inversion assessment
Inspector
Manager
write_to_dataset
which was previously allowing errors to pass through silently. New ASDF utility functions provide better flow control when writing data/metadata to ASDFDataSetsretrieve_windows_from_dataset
to allow for slection by componentretrieve_windows_from_dataset
to allow revalidation of windows, windows that do not pass internal criteria checks are removed whenrevalidate
==TrueASDF Utils
Plotting
WaveMaker
plotting class adds sign (+/-) to time shift because previously it was easy to miss a negative signWaveTrain
combines old 'improve_wave' and 'comp_wave', used to plot waveform improvements from ASDFDataSetsimprove_wave
andcomp_wave
plotting classes which were outdated and ahrdcodedWhy was it initiated? Any relevant Issues?
The Inspector had a lot of nice functions for assessing an inversion but had not been updated much, so some upgrades were necessary. Similarly some utils and plotting functions needed some update now that I'm running inversions again.
No relevant issues
PR Checklist
develop
base branch selected?CHANGELOG.md
.