Skip to content

Conversation

@jtwhite79
Copy link
Collaborator

added support for whitespace delim list files with and without headers. Switched from w instruction to !dum! instruction in pst_utils.csv_to_ins_file() for whitespace delim since it should be a safer option to guard against leading whitespace issues. Also relaxed the restriction that the !dum! entry in the output file be cast to double (this has also been changed in pest++ and I think pest will also make the change soon) - this helps with tables of mixed types that might not be numeric. Had to switch to the feat_newtools branch of pest++ to support this so we need to keep in mind to switch back to develop at some point in the future. One thing Im still wondering about: for rows that are to be skipped in the output file, should we skip the row with just a l1 rather than filling out the row for all the markers and/or !dum! instructions? I think so but @briochh would know better.

@jtwhite79 jtwhite79 requested a review from briochh January 22, 2021 03:11
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 77.754% when pulling a8e3b2d on jtwhite79:hotfix_noheader_list into 8b0d84c on pypest:develop.

pf.extra_py_imports.append('flopy')
pf.mod_sys_cmds.append("which python")
if "linux" in platform.platform().lower():
pf.mod_sys_cmds.append("which python")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think I just added this when I was having some pathing issues can probs be dropped if not useful.

@briochh
Copy link
Collaborator

briochh commented Jan 25, 2021

@jtwhite79, Re rows that are not to be observationalized (love it.): I agree that skipping whole rows is best. I think that this speeds up the processing of those HUGE files when not all rows contain obs. Is this what is currently happening (i.e we write l1 \n)? Could always use l2 etc but probs getting unecessarily complicated.

@briochh briochh merged commit f3274cc into pypest:develop Jan 25, 2021
@jtwhite79
Copy link
Collaborator Author

Currently, each skipped row is getting a full compliment of

l1 ~,~ ~,~ ~,~ ~,~ and on and on and on....

so skipping those rows with just an l1 should speed up pyemu and pest (and make things more robust against junk on those skipped rows)

@briochh
Copy link
Collaborator

briochh commented Jan 25, 2021

double agree

@jtwhite79 jtwhite79 deleted the hotfix_noheader_list branch December 5, 2024 03:22
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.

3 participants