Skip to content

Commit

Permalink
Format wps
Browse files Browse the repository at this point in the history
  • Loading branch information
teobucci committed Mar 25, 2024
1 parent 811fb7b commit 38e1bdc
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions hawk/processes/wps_causal.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from pywps import Process, LiteralInput, LiteralOutput, UOM, ComplexInput, ComplexOutput
from pywps import Process, LiteralInput, LiteralOutput, UOM, ComplexInput, ComplexOutput # noqa
from pywps.app.Common import Metadata
from pywps import FORMATS, Format
from pathlib import Path
Expand All @@ -11,6 +11,7 @@
FORMAT_PNG = Format("image/png", extension=".png", encoding="base64")
FORMAT_PICKLE = Format("application/octet-stream", extension=".pkl", encoding="utf-8")


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

Expand Down Expand Up @@ -157,23 +158,19 @@ def __init__(self):
as_reference=True,
supported_formats=[FORMAT_PICKLE],
),

]

super(Causal, self).__init__(
self._handler,
identifier="causal",
title="Causal Analysis",
abstract="Just says a friendly Hello."
"Returns a literal string output with Hello plus the inputed name.",
abstract="Just says a friendly Hello. Returns a literal string output with Hello plus the inputed name.",
keywords=["hello", "demo"],
metadata=[
Metadata("PyWPS", "https://pywps.org/"),
Metadata("Birdhouse", "http://bird-house.github.io/"),
Metadata("PyWPS Demo", "https://pywps-demo.readthedocs.io/en/latest/"),
Metadata(
"Emu: PyWPS examples", "https://emu.readthedocs.io/en/latest/"
),
Metadata("Emu: PyWPS examples", "https://emu.readthedocs.io/en/latest/"),
],
version="1.5",
inputs=inputs,
Expand Down

0 comments on commit 38e1bdc

Please sign in to comment.