Skip to content

Commit

Permalink
updated version and print statment in MPRT
Browse files Browse the repository at this point in the history
  • Loading branch information
annahedstroem committed Dec 5, 2023
1 parent 6430e69 commit 6511c84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion quantus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Quantus project URL: <https://github.com/understandable-machine-intelligence-lab/Quantus>.

# Set the correct version.
__version__ = "0.5.2"
__version__ = "0.5.3"

# Expose quantus.evaluate to the user.
from quantus.evaluation import evaluate
Expand Down
5 changes: 2 additions & 3 deletions quantus/metrics/randomisation/mprt.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,10 @@ def __init__(
)

if return_sample_correlation is not None:
warnings.warn(
print(
"'return_sample_correlation' parameter is deprecated and will be removed in future versions. "
f"Please use 'return_average_correlation' instead. "
f"Setting 'return_average_correlation' to {return_sample_correlation}",
DeprecationWarning,
f"Setting 'return_average_correlation' to {return_sample_correlation}.",
)
# Use the value of 'return_average_correlation' for 'return_sample_correlation'
return_average_correlation = return_sample_correlation
Expand Down

0 comments on commit 6511c84

Please sign in to comment.