Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dashboard #3

Merged
merged 3 commits into from
Apr 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.