-
Notifications
You must be signed in to change notification settings - Fork 36
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
Dev refactor #401
Dev refactor #401
Conversation
Hello @alexfore! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2024-05-13 10:44:07 UTC |
3b8331a
to
5d7b87f
Compare
* More domain specific knowledge needed to finish refactoring * add util submodule * fix executable permissions * Rename methods in util.shp * Add default args to util.shp.open / save methods * Clean up logging and add --log-level command line args * improve clarity of main computational loop * Remove lat/lon from export_products_worker interface * Add ability to run export_products in parallel with GNU parallel * Add multiproc_method argument to export_products with three options: * gnu_parallel: will use subjobs, executed in parallel, to process export_products_worker * threads: will use multiple threads, faster startup/tear down but has the python GIL issue * single: will run single-threaded
For a given IFG, avoid mixing v3 and v2 products such that only v3 products are passed for a given IFG where available.
Before, the program checked for gaps between products for a given IFG before filtering out v2 in the presence of v3 products
When running this command: `ariaDownload.py --bbox "34.6 34.8 -118.1 -117.9" --track 71 --output Url --start 20211214 --end 20220102` Vestigial 'inps' variable lead to a crash: ``` /u/trappist-r0/ssangha/conda_installation/miniforge/miniforge/envs/dev_ARIA-tools/bin/ariaDownload.py:4: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html __import__('pkg_resources').require('ARIAtools==1.1.6') Traceback (most recent call last): File "/u/trappist-r0/ssangha/conda_installation/miniforge/miniforge/envs/dev_ARIA-tools/bin/ariaDownload.py", line 7, in <module> exec(compile(f.read(), __file__, 'exec')) File "/u/trappist-r0/ssangha/conda_installation/miniforge/miniforge/dev_ARIA-tools/ARIA-tools/tools/bin/ariaDownload.py", line 332, in <module> main() File "/u/trappist-r0/ssangha/conda_installation/miniforge/miniforge/dev_ARIA-tools/ARIA-tools/tools/bin/ariaDownload.py", line 329, in main Downloader(args)() File "/u/trappist-r0/ssangha/conda_installation/miniforge/miniforge/dev_ARIA-tools/ARIA-tools/tools/bin/ariaDownload.py", line 250, in __call__ dst = fmt_dst(inps) ^^^^ NameError: name 'inps' is not defined. Did you mean: 'input'? ```
* tests ariaDownload, ariaExtract, and ariaTssetup * golden input and output data are stored at s3://aria-tools/tests/regression/
* Add NISAR support * ariaExtract updates * Make updates to ariaTSsetup * pep8 changes * Issue pep8 changes to long lines * Push pep8 changes * Adjust long line * Adjust product.py imports * minor style changes * Update masking function (#400) * Update masking function to leverage the OPERA project tile-mate tool * Access to reliable, actively supported high-resolution water masks * Native UTM projections of the NISAR GUNW supported --------- Co-authored-by: Simran S Sangha <[email protected]> Co-authored-by: fore <[email protected]> * Indent if statements to reflect pep8 convention * Indent continuation lines following pep8 suggestion * Split long if statement conditional into multiple lines * Fix minor bug in distinguishing NISAR from S1 GUNWs --------- Co-authored-by: Simran S Sangha <[email protected]> Co-authored-by: fore <[email protected]>
* Found when debugging github issue 396
need to use either None or 1 but not a mix of them as default values
I'm not going to address the style issues in ariaPlot at this time -- they are mostly related to the nested list comps which I lack the energy to decompose. |
Partial refactor of ARIA-tools