Skip to content
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

various utils rely on inschek #88

Closed
wkitlasten opened this issue Aug 20, 2019 · 4 comments
Closed

various utils rely on inschek #88

wkitlasten opened this issue Aug 20, 2019 · 4 comments

Comments

@wkitlasten
Copy link
Collaborator

Several examples and utils rely on inschek.exe. Is it possible to add inschek to the bin? If so, I will do the menial task of changing the run('inschek...) commands to the relative path so Windows users don't have to deal with another download and changing their path in environment variables.

@jtwhite79
Copy link
Collaborator

actually @wkitlasten I just finished adding python-based instruction file processing (checkout Pst.processing_output_files()). This is still pretty green and doesnt support all the complexity of instructions that are possible but it does support the most common instructions (at least that I use). So those calls to inschek are getting phased out and replaced by the python-based processor. Any particular utils are causing you issues? If you are going to add calls to inschek I recommend os_utils.run - it will eliminate issues around the leading ./ on linux and the .exe suffix on windows.

On a related note, I think it would be really nice to have statically-linked binaries for the most common pest utils included with pyemu (with some nice python wrappers as needed), I just dont have the make skills to get them all built for the 3 main OS's.

@wkitlasten
Copy link
Collaborator Author

wkitlasten commented Aug 20, 2019 via email

@jtwhite79
Copy link
Collaborator

ok - I think we should migrate all those raw os.system("inschek...") calls to use pst_utils.try_process_ins_file() - this will use the new python-based instruction processing, esp since those utils write really simple instruction files. I can work that in pretty soon otherwise PRs accepted!

@jtwhite79
Copy link
Collaborator

This should be done now - all instruction file processing should use pyemu.pst_utils.InstructionFile

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

No branches or pull requests

2 participants