Skip to content

Commit c52fcf6

Browse files
hkryeungmike-gangl
andauthored
[Feature/PDOAAC-6302] (issue/137) add in small notificaiton on using -gr flag (#179)
* add in small notificaiton on using `-gr` flag * adjust location of info * adjust spacing * update formatting and wording * formatting * formatting season 2 * updated builds * removed 3.12 because it requires a bit more refactoring * fixed auth versions --------- Co-authored-by: mike-gangl <[email protected]>
1 parent c9a4076 commit c52fcf6

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

.github/workflows/python-app.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
fail-fast: false
1616
max-parallel: 2
1717
matrix:
18-
python-version: [ "3.7", "3.8", "3.9", "3.10" ]
18+
python-version: [ "3.8", "3.9", "3.10", "3.11" ]
1919
poetry-version: [ "1.5.1" ]
2020
os: [ ubuntu-22.04, macos-latest, windows-latest ]
2121
runs-on: ${{ matrix.os }}
@@ -62,7 +62,7 @@ jobs:
6262
fail-fast: false
6363
max-parallel: 1
6464
matrix:
65-
python-version: [ "3.7", "3.8", "3.9", "3.10" ]
65+
python-version: [ "3.8", "3.9", "3.10", "3.11" ]
6666
poetry-version: [ "1.5.1" ]
6767
os: [ ubuntu-22.04, macos-latest, windows-latest ]
6868
runs-on: ${{ matrix.os }}

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
66
## [Unreleased]
77
### Added
88
- Added error messages to inform user if .harmony file is formatted incorrectly or missing a key
9+
- **PODAAC-6302 (issues/137)**
10+
- Added small notification when `-gr` is being used but 0 granules are returned
11+
- Added python versions 3.11 to supported builds
912
### Fixed
1013
- **PODAAC-6303 (issues/167)**
1114
- Fixed issue where -gr and -sd/-ed (temporal) cannot be used together as a query
15+
### Removed
16+
- Removed python 3.7 from supported builds
17+
1218

1319
## [1.15.2]
1420
### Fixed

subscriber/podaac_data_downloader.py

+7
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,13 @@ def cmr_downloader(args, token, data_path):
274274
if args.verbose:
275275
logging.info(str(results['hits']) + " granules found for " + short_name) # noqa E501
276276

277+
if granule is not None and results.get('hits', 0) == 0:
278+
logging.info("** 0 granules found with -gr (granuleUR) flag. **")
279+
logging.info("** If you expected granules to be found and downloaded, **")
280+
logging.info("** please try using wildcards (*/%) in the -gr parameter. **")
281+
logging.info("** -gr=\"*data*\" for multiple characters **")
282+
logging.info("** -gr=\"_A%T_\" for a single character **")
283+
277284
if any([args.dy, args.dydoy, args.dymd]):
278285
file_start_times = pa.parse_start_times(results)
279286
elif args.cycle:

0 commit comments

Comments
 (0)