DOI-USGS / geobipy

Geophysical Bayesian Inference in Python. Docs:
https://usgs.github.io/geobipy/
Other
78 stars 19 forks source link

Opacity can take a while the first time it computes #21

Closed leonfoks closed 5 years ago

leonfoks commented 5 years ago

The first time a HDF5 file is used to calculate opacity, store it as a variable such that it can simply be read in if present.

leonfoks commented 5 years ago

Done! I've added opacity as a property. It first checks for presence in the HDF5 file, if absent, it computes the opacity and writes it to the file. If the user wishes to change the parameters used to create opacity, they can call LineResults.computeOpacity()