Skip to content

Commit

Permalink
Merge pull request #6 from climateintelligence/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
nilshempelmann authored Apr 7, 2024
2 parents c626197 + f8dd2b5 commit b2bff87
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 72 deletions.
6 changes: 3 additions & 3 deletions docs/source/processes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ Processes
:local:
:depth: 1

Say Hello
---------
Causal Analysis
---------------

.. autoprocess:: hawk.processes.wps_say_hello.SayHello
.. autoprocess:: hawk.processes.wps_causal.Causal
:docstring:
:skiplines: 1
2 changes: 0 additions & 2 deletions hawk/processes/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
from .wps_causal import Causal
from .wps_say_hello import SayHello

processes = [
SayHello(),
Causal(),
]
6 changes: 2 additions & 4 deletions hawk/processes/wps_causal.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@


class Causal(Process):
"""A nice process saying 'hello'."""

def __init__(self):
inputs = [
ComplexInput(
Expand Down Expand Up @@ -189,8 +187,8 @@ def __init__(self):
self._handler,
identifier="causal",
title="Causal Analysis",
abstract="Just says a friendly Hello. Returns a literal string output with Hello plus the inputed name.",
keywords=["hello", "demo"],
abstract="Performs a causal analysis with multiple configurations, returning outputs plots and pkl file.",
keywords=["causal", "analysis"],
metadata=[
Metadata("PyWPS", "https://pywps.org/"),
Metadata("Birdhouse", "http://bird-house.github.io/"),
Expand Down
47 changes: 0 additions & 47 deletions hawk/processes/wps_say_hello.py

This file was deleted.

File renamed without changes.
1 change: 0 additions & 1 deletion tests/test_wps_caps.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ def test_wps_caps():
'/ows:Identifier')
assert sorted(names.split()) == [
'causal',
'hello',
]
16 changes: 16 additions & 0 deletions tests/test_wps_causal.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from pywps import Service # noqa: F401
from pywps.tests import assert_response_success, client_for # noqa: F401

from hawk.processes.wps_causal import Causal # noqa: F401

from .common import get_output # noqa: F401


# def test_wps_causal():
# client = client_for(Service(processes=[Causal()]))
# datainputs = "name=LovelySugarBird"
# resp = client.get(
# "?service=WPS&request=Execute&version=1.0.0&identifier=causal&datainputs={}".format(
# datainputs))
# assert_response_success(resp)
# assert get_output(resp.xml) == {'output': "Hello LovelySugarBird"}
15 changes: 0 additions & 15 deletions tests/test_wps_hello.py

This file was deleted.

0 comments on commit b2bff87

Please sign in to comment.