Skip to content

Commit

Permalink
Release/1.15.1 (#166)
Browse files Browse the repository at this point in the history
* initial implementaiton of subset code

* added tests, more updates

* removed skip_errors (not implemented yet)

* Upgrade to harmony-py 0.4.9

* subsetting capability initial commit

* update spacing

* Update docs

* update poetry lock

* upgrade to poetry 1.5.1 (latest)

* fix failing checksum test

* fixed regression test issues

* bump poetry version in second gh action file

* Update poetry version to fix build issue

* bump poetry version

* bump poetry version

* bump version to 1.15.0

* bump version to 1.15.0

* add unreleased section to changelog

* issue/161: Fix bug where --subset flag fails with data subscriber (#162)

* fix bug where the subset flag fails for subscriber

* move arg validation to correct spot

* bump version

* bump version

* Issue/164: Upgrade harmony-py to avoid 413 request entity too large issue (#165)

* bump harmony-py version to 0.4.12

* /version 1.15.1-alpha.2

---------

Co-authored-by: mike-gangl <[email protected]>
  • Loading branch information
skorper and mike-gangl authored Mar 20, 2024
1 parent 3ee78a4 commit c17944e
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 24 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

## [1.15.1]
### Fixed
- Fixed bug where --subset in combination with the subscriber caused errors
### Added

## [1.15.0]
### Added
- Added support for Harmony subsetting
Expand Down
27 changes: 13 additions & 14 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "podaac-data-subscriber"
version = "1.15.0"
version = "1.15.1-alpha.2"
description = "PO.DAAC Data Subscriber Command Line Tool"
authors = ["PO.DAAC <[email protected]>"]
readme = "README.md"
Expand All @@ -16,7 +16,7 @@ python = "^3.7"
requests = "^2.27.1"
tenacity = "^8.0.1"
packaging = "^23.0"
harmony-py = "^0.4.9"
harmony-py = "^0.4.12"

[tool.poetry.dev-dependencies]
pytest = "^7.1.2"
Expand Down
9 changes: 1 addition & 8 deletions subscriber/podaac_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import tenacity
from datetime import datetime

__version__ = "1.15.0"
__version__ = "1.15.1"
extensions = ["\\.nc", "\\.h5", "\\.zip", "\\.tar.gz", "\\.tiff"]
edl = "urs.earthdata.nasa.gov"
cmr = "cmr.earthdata.nasa.gov"
Expand Down Expand Up @@ -221,13 +221,6 @@ def validate(args):
'Please specify exactly one flag '
'from -dc, -dy, -dydoy, or -dymd')

if args.subset and args.search_cycles:
# Cycle+Subset are not supported, because Harmony does not
# currently accept Cycle.
raise ValueError(
'Error: Incompatible Parameters. You\'ve provided both cycles and subset, which is '
'not allowed. Please provide either cycles or subset separately, but not both.')

if args.subset and args.bbox:
bounds = list(map(float, args.bbox.split(',')))
if bounds[0] > bounds[2]:
Expand Down
7 changes: 7 additions & 0 deletions subscriber/podaac_data_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ def validate(args):
if None in [args.endDate, args.startDate] and args.search_cycles is None and args.granulename is None:
raise ValueError(
"Error parsing command line arguments: Both --start-date and --end-date must be specified") # noqa E50
if args.subset and args.search_cycles:
# Cycle+Subset are not supported, because Harmony does not
# currently accept Cycle.
raise ValueError(
'Error: Incompatible Parameters. You\'ve provided both cycles and subset, which is '
'not allowed. Please provide either cycles or subset separately, but not both.'
)


def create_parser():
Expand Down

0 comments on commit c17944e

Please sign in to comment.