-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from BrainLesion/31-feature-request-citation-r…
…eminder 31 feature request citation reminder
- Loading branch information
Showing
3 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from rich.console import Console | ||
|
||
CITATION_LINK = "https://github.com/BrainLesion/AURORA#citation" | ||
|
||
|
||
def citation_reminder(func): | ||
def wrapper(*args, **kwargs): | ||
console = Console() | ||
console.rule("Thank you for using [bold]AURORA[/bold]") | ||
console.print( | ||
f"Please support our development by citing the papers listed here:", | ||
justify="center", | ||
) | ||
console.print( | ||
f"{CITATION_LINK} -- Thank you!", | ||
justify="center", | ||
) | ||
console.rule() | ||
console.line() | ||
func(*args, **kwargs) | ||
|
||
return wrapper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters