Skip to content

Is there a way to check if inputs exist before running METplus? #2167

Locked Answered by georgemccabe
John-Sharples asked this question in File I/O
Discussion options

You must be logged in to vote

Hi @John-Sharples,

The short answer is no, the METplus wrappers do not have any mechanism built-in to check if all of the expected inputs exist before running.

There exists a METplus config variable called DO_NOT_RUN_EXE that will try to build commands but not actually run them. You could use this to speed up the run since the actual MET tools are not being called. The METplus run should still fail if any of the expected files are not found. However, if your use case runs more than one process and a downstream process reads output that is created by a earlier process, then the use case will likely always fail.

I'm not sure if there is an easy catch-all solution that could be implemented i…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@georgemccabe
Comment options

Answer selected by georgemccabe
Comment options

You must be logged in to vote
1 reply
@georgemccabe
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants