Skip to content

Commit

Permalink
added text parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
cehbrecht committed Mar 5, 2018
1 parent a856930 commit b07297a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tutorials/11_pywps_testing/processes/wps_simple_plot.py
Expand Up @@ -16,13 +16,16 @@ def __init__(self):
ComplexInput('dataset', 'Dataset', supported_formats=[Format('application/x-netcdf')],
default=AIR_DS,
abstract='Example: {0}'.format(AIR_DS)),
ComplexInput('text', 'Text', supported_formats=[Format('text/plain')]),
LiteralInput('variable', 'Variable', data_type='string',
default='air',
abstract='Enter the variable name.'),
]
outputs = [
ComplexOutput('output', 'Simple Plot', supported_formats=[Format('image/png')],
as_reference=True),
ComplexOutput('text', 'Text', supported_formats=[Format('text/plain')],
as_reference=True),
]

super(SimplePlot, self).__init__(
Expand All @@ -45,5 +48,6 @@ def _handler(self, request, response):
variable=variable)
LOGGER.info("produced output: %s", output)
response.outputs['output'].file = output
response.outputs['text'].file = request.inputs['text'][0].file
response.update_status("simple_plot done", 100)
return response

0 comments on commit b07297a

Please sign in to comment.