Skip to content

Commit 2355244

Browse files
authored
Use markdown table on results website (#122)
* Use markdown table in jupyterbook * Update link to markdown database * Use https instead of http * Rename the markdown file to match header * Fix typo * Update contribution table url
1 parent e5c23cf commit 2355244

File tree

8 files changed

+12
-1687
lines changed

8 files changed

+12
-1687
lines changed

.github/workflows/convert_csv.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/jupyterbook.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@ jobs:
2727
pip install wheel pytest
2828
pip install -r notebooks/requirements.txt
2929
pip install .
30-
3130
- name: Test with pytest
3231
run: |
3332
pytest .
34-
3533
# Build the book
34+
- name: Convert contributors csv to md
35+
run: |
36+
python doc/convert_to_md.py
3637
- name: Build the book
3738
run: |
3839
jupyter-book build notebooks/
3940
touch notebooks/_build/html/.nojekyll
40-
4141
- name: Re-organize files
4242
run: |
4343
mkdir out

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66

77

8-
- [code database with links to source code](doc/code_contributions_record.md)
9-
- [test-results website](http://osipi.org/DCE-DSC-MRI_TestResults)
8+
- [code database with links to source code](https://osipi.org/DCE-DSC-MRI_TestResults/overview_of_code_collection.html)
9+
- [test-results website](https://osipi.org/DCE-DSC-MRI_TestResults)
1010

1111
The ISMRM Open Science Initiative for Perfusion Imaging ([OSIPI](https://www.osipi.org/)) aims to promote the sharing of perfusion imaging software in order to reduce duplication, improve reproducibility and speed up translation. This **DCE-DSC-MRI_CodeCollection** code library is maintained by [Taskforce 2.3](https://www.osipi.org/task-force-2-3/) of OSIPI and aims to collect, test and share open-source perfusion imaging code for use in research and software development. Code contributions can include modules covering one or more steps within the image processing pipeline, for example T1 mapping, converting signal to concentration and pharmacokinetic modelling. A further aim of OSIPI is to develop a fully tested and harmonised code library, drawing on the contributions within this repository.
1212

@@ -43,4 +43,4 @@ The results of the validated code are published on the [test-results website](ht
4343

4444

4545

46-
This is an ongoing project, we welcome new contributions. If you would like to contribute to the OSIPI initiative please email the contacts listed on our [website](https://www.osipi.org/task-force-2-3/).
46+
This is an ongoing project, we welcome new contributions. If you would like to contribute to the OSIPI initiative please email the contacts listed on our [website](https://www.osipi.org/task-force-2-3/).

doc/code_contributions_record.md

Lines changed: 0 additions & 89 deletions
This file was deleted.

doc/convert_to_md.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import pandas as pd
22

33
df = pd.read_csv('doc/code_contributions_record.csv')
4-
with open('doc/code_contributions_record.md', 'w') as md:
5-
df.to_markdown(buf=md, index=False)
4+
md = df.to_markdown(index=False).replace("(../", "(https://github.com/OSIPI/DCE-DSC-MRI_CodeCollection/tree/develop/")
5+
with open('notebooks/overview_of_code_collection.md', 'w') as f:
6+
f.write("# Overview of code collection\n\n")
7+
f.write(md)

notebooks/_toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
format: jb-article
55
root: intro.md
66
sections:
7-
- file: contributors.ipynb
7+
- file: overview_of_code_collection.md
88
- file: DCE.md
99
sections:
1010
- file: T1mapping.md

0 commit comments

Comments
 (0)