adjtomo / pyatoa

Python's Adjoint Tomography Operations Assistant (Pyatoa): a misfit assessment toolbox for full waveform tomography
GNU General Public License v3.0
20 stars 8 forks source link

Refactor API for simplicity and to remove unnecessary abstraction #38

Closed bch0w closed 1 year ago

bch0w commented 1 year ago

Why was it initiated? Any relevant Issues?

The motivation behind the changes here are that the original data gathering setup used by Pyatoa was very abstract, opaque, and unnecessarily rigid, e.g.,, building path strings out of various components of filenames and internal attributes, or hiding preprocessing functions behind abstract function calls.

Changes were made to make tasks in Pyatoa more explicit rather than implicit, hopefully making it easier to use and manipulate both as a direct tool, and in larger workflow tools.

Finally, data gathering has been completely removed from this package, and the new recommend approach is to use PySEP to perform all data gathering once-and-for-all, including one time tasks like instrument removal. The resulting SAC files can then be read in with ObsPy and directly fed into the Manager class for misfit quantification.

What does this PR do?

CHANGELOG:

PR Checklist