aria-tools / ARIA-tools

Tools for exploiting ARIA standard products
Apache License 2.0
99 stars 36 forks source link

[BUG] ariaDownload not working with asf_search 8.0.1 #443

Closed EJFielding closed 2 weeks ago

EJFielding commented 2 months ago

Describe the bug

I installed aria-tools and asf_search in a conda environment. When I try to run ariaDownload.py, I get an error from the asf_search call.

To Reproduce Steps to reproduce the behavior:

  1. Install aria-tools 1.2.1 and asf_search v 8.0.1
  2. Command used ariaDownload.py -b '37.0 38.1 -122.6 -121.25' --track 35 --num_threads 8
  3. Error Output:
    Traceback (most recent call last):
    File "/u/vento-r0/ericf/packages/miniconda3/envs/ARIA-tools/bin/ariaDownload.py", line 393, in <module>
    main()
    File "/u/vento-r0/ericf/packages/miniconda3/envs/ARIA-tools/bin/ariaDownload.py", line 389, in main
    Downloader(args)()
    File "/u/vento-r0/ericf/packages/miniconda3/envs/ARIA-tools/bin/ariaDownload.py", line 229, in __call__
    scenes = self.query_asf()
             ^^^^^^^^^^^^^^^^
    File "/u/vento-r0/ericf/packages/miniconda3/envs/ARIA-tools/bin/ariaDownload.py", line 349, in query_asf
    dataset=asf_search.DATASET.ARIA_S1_GUNW,
            ^^^^^^^^^^^^^^^^^^
    AttributeError: module 'asf_search' has no attribute 'DATASET'

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

mgovorcin commented 2 weeks ago

resolved in #455