Skip to content

Commit dd1f1be

Browse files
authored
Merge pull request #50 from neuronflow/nicer_notifications
nicer
2 parents 477fe20 + 9c6b591 commit dd1f1be

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

brats_toolkit/util/citation_reminder.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
from rich.console import Console
22

3+
CITATION_LINK = "https://github.com/neuronflow/BraTS-Toolkit#citation"
4+
35

46
def citation_reminder(func):
57
def wrapper(*args, **kwargs):
68
console = Console()
7-
console.rule("[bold red]Friendly citation reminder[/bold red]")
9+
console.rule("Thank you for using [bold]BraTS Toolkit[/bold]")
810
console.print(
9-
"If you use this software in your research, please [bold cyan]cite[/bold cyan] BraTS Toolkit and the original authors of the algorithms who make this repository and tool possible.",
11+
f"Please support our development by citing BraTS Toolkit and the papers of the segmentation algorithms you use:",
1012
justify="center",
1113
)
1214
console.print(
13-
"Details can be found at https://github.com/neuronflow/BraTS-Toolkit#citation",
15+
f"{CITATION_LINK} -- Thank you!",
1416
justify="center",
1517
)
16-
console.print("Thank you!", justify="center")
1718
console.rule()
1819
console.line()
1920
func(*args, **kwargs)
@@ -30,11 +31,11 @@ def wrapper(*args, **kwargs):
3031
justify="center",
3132
)
3233
console.print(
33-
"You can already beta test the new BrainLes preprocessing pipeline which allows for arbitrary sequences and implements multiple backends for registration and brain extration and. Furthermore it does not require docker",
34+
"You can already beta test the new BrainLes preprocessing: https://github.com/BrainLesion/preprocessing",
3435
justify="center",
3536
)
3637
console.print(
37-
"visit https://github.com/BrainLesion/preprocessing to learn more",
38+
"Unlike the original preprocessing from BraTS Toolkit, the new pipeline allows for arbitrary sequences, implements multiple backends for registration and brain extration and does not require docker.",
3839
justify="center",
3940
)
4041
console.rule()

0 commit comments

Comments
 (0)