Skip to content
Snippets Groups Projects
Commit 4fc9116e authored by Jutta Schnabel's avatar Jutta Schnabel
Browse files

edits for summary page

parent ac99e0a0
No related branches found
No related tags found
No related merge requests found
Pipeline #14735 failed
...@@ -6,7 +6,7 @@ Welcome to Open Science @KM3NeT! ...@@ -6,7 +6,7 @@ Welcome to Open Science @KM3NeT!
.. toctree:: .. toctree::
:maxdepth: 2 :maxdepth: 2
Fair data <pages/FAIR> pages/FAIR
pages/ScienceTargets pages/ScienceTargets
pages/Infrastructure pages/Infrastructure
pages/Detector pages/Detector
......
...@@ -6,7 +6,7 @@ def adapt_file(filename): ...@@ -6,7 +6,7 @@ def adapt_file(filename):
inline = f.readline() inline = f.readline()
while inline: while inline:
if inline.find("pages/")>-1 and inline.find(".md")>-1: if inline.find("pages/")>-1 and inline.find(".md")>-1:
inline.replace(".md", ".rst") inline.replace(".md", ".html")
newversion += inline newversion += inline
inline = f.readline() inline = f.readline()
with open(filename, "w") as f: with open(filename, "w") as f:
...@@ -22,12 +22,14 @@ def fulltext_from_filelist(filelistname, onlystatus = "", adapt_files = True): ...@@ -22,12 +22,14 @@ def fulltext_from_filelist(filelistname, onlystatus = "", adapt_files = True):
with open(infilename, "r") as ftext: with open(infilename, "r") as ftext:
addtext = ftext.read() addtext = ftext.read()
infotext = addtext[addtext.find("---")+3:addtext.find("---", 5)].split("\n") infotext = addtext[addtext.find("---")+3:addtext.find("---", 5)].split("\n")
status, author = "", "" status, author, reviewer = "", ""
for line in infotext: for line in infotext:
if line.find("status:")> -1: if line.find("status:")> -1:
status = line[8:len(line)] status = line[8:len(line)]
if line.find("Author")> -1: if line.find("Author")> -1:
author = line[8:len(line)] author = line[8:len(line)]
f line.find("Reviewer")> -1:
reviewer = line[8:len(line)]
takeit = True takeit = True
if onlystatus: if onlystatus:
takeit = False takeit = False
...@@ -38,8 +40,10 @@ def fulltext_from_filelist(filelistname, onlystatus = "", adapt_files = True): ...@@ -38,8 +40,10 @@ def fulltext_from_filelist(filelistname, onlystatus = "", adapt_files = True):
fulltext += addtext[addtext.find("---", 5)+3:len(addtext)] + "\n" fulltext += addtext[addtext.find("---", 5)+3:len(addtext)] + "\n"
overview["filename"].append(infilename) overview["filename"].append(infilename)
overview["author"].append(author) overview["author"].append(author)
overview["reviewer"].append(reviewer)
overview["status"].append(status) overview["status"].append(status)
if adapt_files: if adapt_files:
print ("Redoing file", infilename)
adapt_file(infilename) adapt_file(infilename)
infilename = f.readline().rstrip("\n") infilename = f.readline().rstrip("\n")
...@@ -57,12 +61,13 @@ with open("Deliverable_4-9.md", "w") as f: ...@@ -57,12 +61,13 @@ with open("Deliverable_4-9.md", "w") as f:
with open("statuspage.md", "w") as f: with open("statuspage.md", "w") as f:
status = "## Current page status\n\n" status = "## Current page status\n\n"
status += "| Filename | Author | Status |\n" status += "| Filename | Author | Reviewer | Status |\n"
status += "| -------- | ------ | ------ |\n" status += "| -------- | ------ | -------- | ------ |\n"
for stats in (status1, status2): for stats in (status1, status2):
for i in range(len(stats["filename"])): for i in range(len(stats["filename"])):
status += "| " + stats["filename"][i] \ status += "| " + stats["filename"][i] \
+ " | " + stats["author"][i] \ + " | " + stats["author"][i] \
+ " | " + stats["reviewer"][i] \
+ " | " + stats["status"][i] + " |\n" + " | " + stats["status"][i] + " |\n"
f.write(status) f.write(status)
......
--- ---
Title: Detector and Data Taking Title: Detector and Data Taking
Author: Jannik Author: Jannik
status: reviewed (Tamas) status: reviewed
Reviewer: Tamas
Comment: Mainly based on LoI Comment: Mainly based on LoI
--- ---
......
...@@ -10,7 +10,7 @@ status: review ...@@ -10,7 +10,7 @@ status: review
The KM3NeT Open Science System seamlessly integrates with the computing environment of the KM3NeT collaboration, providing data, software and documentation to all relevant parts of the scientific analysis workflow. The KM3NeT Open Science System seamlessly integrates with the computing environment of the KM3NeT collaboration, providing data, software and documentation to all relevant parts of the scientific analysis workflow.
![Infrastructure overview](/figures/infrastructure_overview.png) ![Infrastructure overview](figures/infrastructure_overview.png)
## Open Science Products ## Open Science Products
......
--- ---
Title: Scientific targets Title: Scientific targets
Author: Jannik Author: Jannik
status: reviewed (Tamas) status: reviewed
Reviewer: Tamas
Comment: Mainly based on LoI and Infradev Grant Agreement Comment: Mainly based on LoI and Infradev Grant Agreement
--- ---
......
...@@ -5,7 +5,7 @@ Topics: ...@@ -5,7 +5,7 @@ Topics:
- short description analysis - short description analysis
- data description - data description
- linking to notebooks & background - linking to notebooks & background
status: unedited status: draft
--- ---
# KM3NeT Use Case # KM3NeT Use Case
......
...@@ -6,7 +6,8 @@ Topics: ...@@ -6,7 +6,8 @@ Topics:
- guidelines - guidelines
- git analysis template description - git analysis template description
- guidelines - guidelines
status: reviewed (Jannik) Reviewer: Jannik
status: reviewed
--- ---
# Using templates # Using templates
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment