Skip to content

Commit

Permalink
update time_components parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
cehbrecht committed Sep 14, 2021
1 parent 703f088 commit 881a269
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions rook/processes/wps_subset.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ def __init__(self):
max_occurs=1,
),
LiteralInput(
"time_rule",
"Time Rule",
abstract="An optional time rule to describe divisions of the time period (like seasons)."
" Example: months=01,02,03 or years=1970,1980;months=01;days=01",
"time_components",
"Time Components",
abstract="Optional time components to describe parts of the time period (like seasons)."
" Example: month:01,02,03 or year:1970,1980|month=01,02,03",
data_type="string",
min_occurs=0,
max_occurs=1,
Expand Down Expand Up @@ -140,9 +140,7 @@ def _handler(self, request, response):
# from daops.utils.normalise import ResultSet

# show me the environment used by the process in debug mode
LOGGER.debug(f"Environment used in subset: {os.environ}")

LOGGER.info(f"time rule: {request.inputs['time_rule'][0].data}")
# LOGGER.debug(f"Environment used in subset: {os.environ}")

# from roocs_utils.exceptions import InvalidParameterValue, MissingParameterValue
collection = parse_wps_input(
Expand All @@ -162,6 +160,7 @@ def _handler(self, request, response):
request.inputs, "original_files", default=False
),
"time": parse_wps_input(request.inputs, "time", default=None),
"time_components": parse_wps_input(request.inputs, "time_components", default=None),
"level": parse_wps_input(request.inputs, "level", default=None),
"area": parse_wps_input(request.inputs, "area", default=None),
}
Expand Down

0 comments on commit 881a269

Please sign in to comment.