mbakker7 / ttim

MIT License
33 stars 23 forks source link

add support for layer ranges via name argument in Calibration class #10

Closed ghost closed 5 years ago

ghost commented 5 years ago

Added some logic to parse layer range in name in Calibration.set_parameter(). Edited some other lines to correctly deal with an array of values in 'parray' column in parameters DataFrame.

user can now enter for example:

cal.set_parameter(name="kaq0-3", initial=2)

which means layers 0 up to and including 3 have the same parameter value in the optimization.

Also added some docstrings.

mbakker7 commented 5 years ago

Nice job. Would be great to have a Jupyter notebook demonstrating the new capabilities.

ghost commented 5 years ago

I'll add an example, probably most logical to add it to the existing pumping test notebooks.

mbakker7 commented 5 years ago

That would be great.