-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ult_bnds getting changed unexpectedly #573
Comments
Short answer -- no, no good reason why pars should have the same bound. There is a bit of a legacy here though, the original conceived use-case was that and ultimate bounds for the native model input file values might reasonably be applied across a "group". This together with the assumptions that for list-like, tabular input files, parameters groups would be along a column (so across rows). I guess we did this to try and keep that For now, your best bet might be to tackle the application of bounds in our own pre-processing func (presumably these pars are being sucked into another method anyway at some point?). Or see you go with a transposed input file. |
Makes sense, as always. Although I can imagine a case where you select certain rows (e.g., by layer) that have different par bounds. Obviously ways around that in MODFLOW (with the exception of the period data) , but maybe less obvious in other modelling software? Maybe worth noting (although a personal problem) this issue came up because using pf to apply a constant parameter to an array creates a tpl file resembling the array (makes sense to deal with zones). For a big model (e.g. a long diagonal island) that caused issues with pest_hp reading the long lines. Thanks for adding support for column arrays... problem solved once I get around to chasing that through my code! |
I have been able to track my
parfile_relations
to line 338 inpst_from.py
and all looks good at that point. The following values are inpr
:But the following code (and similar for lbound) changes the upper and lower bound to the max and min of the columns for a give file.
To give this:
The file being parameterized (using
use_rows
in the 'pf.add_parameters` call) has parnames as rows and parvals in a column (plus some other columns I use for other stuff, so simply transposing the table gets awkward):Is there a reason all parameters (rows) should have the same bounds?
The text was updated successfully, but these errors were encountered: