Skip to content

Conversation

@briochh
Copy link
Collaborator

@briochh briochh commented Jan 20, 2022

Proposing to "simplify" setting up parameters and observations with pst_from and longnames=False. Parameter and observations names with will default to p{x} and o{x}, respectively, where x is effectively a counter. Two additional files will be written to map these names to their longname counterparts allowing the parameter and observation metadata to still be stored and used in processing (while maintaining better support for classic PEST and PEST UTILS).

Using the pyemu.Pst() function to load in the pest control file will attempt to populate the metadata columns of parameter_data and observation_data with the metadata stored in these helper files.

These changes do actually simplify the general par and obs naming methods, however, obviously they may break peoples current longnames=False setups. Happy to leave on a branch for now if folks want to test more thoroughly.

briochh and others added 11 commits December 20, 2021 12:00
* Starting shortnames refactor

* More carefully handling shortname mapping for repeat pst builds in pstfrom

* need to pad tpl entries to prevent excess precision loss

* control file may not have parameter group section

* Tidy longname refs from pst_utils

* Tidy old long name refs from pst_from

* Tidy longname refs from pp_utils

* Short name test can now be shorter
@briochh briochh requested a review from jtwhite79 January 20, 2022 01:40
@briochh
Copy link
Collaborator Author

briochh commented Jan 20, 2022

somewhat related to #280

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 78.006% when pulling 8c15fd8 on feat_shortnames into f380260 on develop.

@jtwhite79 jtwhite79 merged commit ea5675b into develop Jan 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants