-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
312 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,31 @@ | ||
version: '3' | ||
services: | ||
emu: | ||
# http://localhost:5000/wps | ||
build: . | ||
image: birdhouse/emu | ||
image: birdhouse/emu:dev | ||
ports: | ||
- "5000:5000" | ||
volumes: | ||
- outputpath:/tmp | ||
|
||
thredds: | ||
# Thredds is used as DAP server for Emu outputs | ||
# http://localhost:8080/thredds/catalog.html | ||
image: unidata/thredds-docker:4.6.14 | ||
ports: | ||
- "8080:8080" | ||
volumes: | ||
- ./threddsCatalog.xml:/usr/local/tomcat/content/thredds/catalog.xml:ro | ||
- outputpath:/wps_outputs:ro | ||
|
||
volumes: | ||
outputpath: {} | ||
|
||
# docker-compose build | ||
# docker-compose up | ||
# docker-compose down | ||
# docker-compose down -v | ||
# -v, --volumes Remove named volumes declared in the `volumes` section | ||
# of the Compose file and anonymous volumes | ||
# attached to containers. | ||
# docker-compose rm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ | |
|
||
__author__ = """Carsten Ehbrecht""" | ||
__email__ = 'ehbrecht@dkrz.de' | ||
__version__ = '0.11.0' | ||
__version__ = '0.11.1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
""" | ||
Translation process to check WPS translations | ||
""" | ||
from pywps import Process, LiteralInput, LiteralOutput | ||
|
||
import logging | ||
LOGGER = logging.getLogger("PYWPS") | ||
|
||
|
||
class Translation(Process): | ||
def __init__(self): | ||
inputs = [ | ||
LiteralInput('input1', 'Input1 number', | ||
default='100', data_type='integer', | ||
translations={ | ||
"fr-CA": {"title": "Entrée #1", "abstract": "Entier #1"}, | ||
"de-DE": {"title": "Eingabe #1", "abstract": "Eingabe #1"}, | ||
}), | ||
] | ||
outputs = [ | ||
LiteralOutput('output1', 'Output1 add 1 result', | ||
data_type='string', | ||
translations={ | ||
"fr-CA": {"title": "Sortie #1", "abstract": "Chaîne de charactères"}, | ||
"de-DE": {"title": "Ausgabe #1", "abstract": "Ergebnis"} | ||
}), | ||
] | ||
|
||
super(Translation, self).__init__( | ||
self._handler, | ||
identifier='translation', | ||
title="Translated process", | ||
abstract="Process including translations in other languages.", | ||
version="1.0", | ||
inputs=inputs, | ||
outputs=outputs, | ||
store_supported=True, | ||
status_supported=True, | ||
keywords=["languages"], | ||
translations={ | ||
"fr-CA": {"title": "Processus traduit", | ||
"abstract": "Processus incluant des traductions", | ||
"keywords": ["langues"]}, | ||
"de-DE": {"title": "Mehrsprachiger Prozess", | ||
"abstract": "Prozess mit mehreren Sprachen.", | ||
"keywords": ["sprachen"]} | ||
} | ||
) | ||
|
||
@staticmethod | ||
def _handler(request, response): | ||
response.update_status('PyWPS Process started.', 0) | ||
|
||
LOGGER.debug("input1 %s", request.inputs['input1'][0].data) | ||
response.outputs['output1'].data = request.inputs['input1'][0].data + 1 | ||
|
||
response.update_status('PyWPS Process completed.', 100) | ||
return response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
pywps>=4.2.0 | ||
pywps>=4.2.4<4.3 | ||
jinja2 | ||
click | ||
psutil | ||
defusedxml | ||
geomet | ||
netCDF4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[bumpversion] | ||
current_version = 0.11.0 | ||
current_version = 0.11.1 | ||
commit = True | ||
tag = True | ||
|
||
|
Oops, something went wrong.