Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions src/neonutilities/aop_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def get_aop_dpids():
-------
active_dpids: list
A list of all active AOP data product IDs (productStatus = "ACTIVE")

inactive_dpids: list
A list of all inactive AOP data product IDs (productStatus = "FUTURE" / suspended products)

Expand Down Expand Up @@ -829,10 +829,13 @@ def by_file_aop(

# report data download size and ask user if they want to proceed
if check_size:
if input(
f"Continuing will download {num_files} NEON data files totaling approximately {download_size}. Do you want to proceed? (y/n) "
) != (
"y" or "Y"
if (
input(
f"Continuing will download {num_files} NEON data files totaling approximately {download_size}. Do you want to proceed? (y/n) "
)
.strip()
.lower()
!= "y"
): # lower or upper case 'y' will work
print("Download halted.")
return
Expand Down Expand Up @@ -1243,7 +1246,9 @@ def get_buffer_coords(easting, northing, buffer):
input(
f"Continuing will download {num_files} NEON data files totaling approximately {download_size}. Do you want to proceed? (y/n) "
)
!= ("y" or "Y")
.strip()
.lower()
!= "y"
):
print("Download halted")
return
Expand Down