Skip to content

Commit

Permalink
Merge pull request #3 from climateintelligence/update-dashboard
Browse files Browse the repository at this point in the history
Update dashboard
  • Loading branch information
cehbrecht authored Apr 12, 2024
2 parents 241eb21 + a7c2436 commit b50049f
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 86 deletions.
1 change: 0 additions & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
installation
configuration
dev_guide
processes
authors
changes

Expand Down
15 changes: 0 additions & 15 deletions docs/source/processes.rst

This file was deleted.

2 changes: 0 additions & 2 deletions parrot/processes/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
from .wps_say_hello import SayHello
from .wps_dashboard import Dashboard

processes = [
SayHello(),
Dashboard(),
]
47 changes: 0 additions & 47 deletions parrot/processes/wps_say_hello.py

This file was deleted.

9 changes: 4 additions & 5 deletions parrot/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,15 @@ def display_json(data):

def query():
query_str = """
SELECT ?process ?dataset ?variable ?startTime ?endTime ?input ?output ?info ?histogram
SELECT ?process ?dataset ?variable ?startTime ?endTime ?input ?output ?info
WHERE {
?exec rdf:type provone:Execution ;
rdfs:label ?process ;
clint:dataset_name ?dataset ;
clint:variable_name ?variable ;
prov:startedAtTime ?startTime ;
prov:endedAtTime ?endTime ;
clint:info ?info ;
clint:histogram ?histogram .
clint:info ?info .
?input rdf:type prov:Entity .
Expand Down Expand Up @@ -54,7 +53,7 @@ def query():
# mean = row.mean.value
# stddev = row.stddev.value
info = json.loads(row.info.value)
histogram = row.histogram.value
# histogram = row.histogram.value
entry = {
"Process": process,
"Dataset": dataset,
Expand All @@ -67,7 +66,7 @@ def query():
# "Max": max,
# "Mean": mean,
# "StdDev": stddev,
"Histogram": display_image(histogram),
# "Histogram": display_image(histogram),
}
for key in info:
entry[key] = display_json(info[key])
Expand Down
1 change: 0 additions & 1 deletion tests/test_wps_caps.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ def test_wps_caps():
)
assert sorted(names.split()) == [
"dashboard",
"hello",
]
15 changes: 0 additions & 15 deletions tests/test_wps_hello.py

This file was deleted.

0 comments on commit b50049f

Please sign in to comment.