mantle-convection-constrained / terratools

Tools to read, analyse and visualise models written by the TERRA mantle convection code
https://terratools.readthedocs.io/en/latest/
MIT License
6 stars 5 forks source link

SeismicLookupTable: Enable construction from data #80

Closed anowacki closed 1 year ago

anowacki commented 1 year ago

Add several arguments to the SeismicLookupTable constructor, one for each property read from a table, allowing one to create an instance without having to read files from disk. Passing a single argument still reads a file from disk, however, meaning this change is backwards-compatible.

Along the way, tidy up the internal state held by SeismicLookupTable:

Pull Request Checklist. Please read and check each box with an X. Delete any part not applicable.

Describe what you did in this PR and why you did it.

For all pull requests:

For new features/models or changes of existing features: