-
Notifications
You must be signed in to change notification settings - Fork 94
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
pst_from support for single column parameter files #490
Comments
@wkitlasten this seems like something that should be supported. I would vote for using index_col=None but specifying use_col=0 for the headerless single column list file type. The main thing to look out for is that (I think) the presence of a non None index_col is what triggers a lot of assumptions about the input file structure (ie list rather than array style). This could be switched over to use_cols being the trigger and the index that is required for the parameter name being derived from the dataframe index. There maybe a bit of chasing it through required. Give a shout if you get stuck. |
The option here is to support single col inputs as either list-like or array-like. |
MODFLOW can handle a single column of data with nlay x nrow x ncol entries (e.g., K). pst_from.add_parameters() does not seem to like those files (no index, no header). Doesn't it seem reasonable to support such a file when index_cols=None and use_cols=None?
I will try to address this tomorrow (fair warning!). Anything I might be missing?
The text was updated successfully, but these errors were encountered: