-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Patch 5561 - Standardized return codes for gdal-utils #5582
Conversation
credit to @EvertEt for spotting it
Changing all default empty return codes to "2"
Is there a reason we can't standardise on 2 everywhere? ie: |
Define 'everywhere' :) If you're talking about |
Key was understanding that the script name (with path) need to be in subprocess.run() initial [...] block, and _not_ as part of input arguments. More refactoring needed now to demark the difference between Programs and Scripts, with explanation. Probably some simplification possible to.
Wow, what a long haul this 'simple' idea turned into! But, I think it's finally ready. Please have a look @rouault, @idanmiara.
|
I don't understand what you mean. I only see a "import FFT" in that file |
Run a series of python scripts and display their exit codes. Helper script for: Standardize gdal-utils scripts return codes #5561 (OSGeo/gdal#5582) Not actually gdal specific, hard coded for now but relatively easy to generalize for any folder.
Probably better to use numpy.fft instead, but it doesn't have function 'fft2d' and I don't know what the best equivalent function is.
Oh! Git blame says I'm the one who added it, in 04aad75, to work around an import error. I don't remember what made me think that was a good alternative. I've changed it to gracefully exit if FFT module not found. It's might be better to use numpy.fft instead, but it doesn't have function 'fft2d' and I don't know what the best equivalent function is. |
What does this PR do?
Standardized return codes for gdal-utils scripts when called without arguments
What are related issues/pull requests?
2
Branch patch-5561-ret2, standardized to returnmerged into patch-5561.2
Tasklist
2
that were-1
0
auxillarySkip, these are not meant to be scripts.1
2
scripts that useGDALArgumentParser
(ref)Environment
Provide environment details, if relevant:
Updated 2022-05-23