Skip to content

Commit

Permalink
Merge pull request #50 from neuronflow/nicer_notifications
Browse files Browse the repository at this point in the history
nicer
  • Loading branch information
neuronflow authored Dec 10, 2023
2 parents 477fe20 + 9c6b591 commit dd1f1be
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions brats_toolkit/util/citation_reminder.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
from rich.console import Console

CITATION_LINK = "https://github.com/neuronflow/BraTS-Toolkit#citation"


def citation_reminder(func):
def wrapper(*args, **kwargs):
console = Console()
console.rule("[bold red]Friendly citation reminder[/bold red]")
console.rule("Thank you for using [bold]BraTS Toolkit[/bold]")
console.print(
"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.",
f"Please support our development by citing BraTS Toolkit and the papers of the segmentation algorithms you use:",
justify="center",
)
console.print(
"Details can be found at https://github.com/neuronflow/BraTS-Toolkit#citation",
f"{CITATION_LINK} -- Thank you!",
justify="center",
)
console.print("Thank you!", justify="center")
console.rule()
console.line()
func(*args, **kwargs)
Expand All @@ -30,11 +31,11 @@ def wrapper(*args, **kwargs):
justify="center",
)
console.print(
"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",
"You can already beta test the new BrainLes preprocessing: https://github.com/BrainLesion/preprocessing",
justify="center",
)
console.print(
"visit https://github.com/BrainLesion/preprocessing to learn more",
"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.",
justify="center",
)
console.rule()
Expand Down

0 comments on commit dd1f1be

Please sign in to comment.