From 7bc1c080bf8e538edcc38a340aa491ad5c7433b0 Mon Sep 17 00:00:00 2001 From: radek_poleski Date: Thu, 23 Nov 2023 10:45:46 +0100 Subject: [PATCH] ex16: correction in _second_Y_axis_warnings() from Raphael --- examples/example_16/ulens_model_fit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/example_16/ulens_model_fit.py b/examples/example_16/ulens_model_fit.py index f45fb353..614f29c2 100644 --- a/examples/example_16/ulens_model_fit.py +++ b/examples/example_16/ulens_model_fit.py @@ -38,7 +38,7 @@ except Exception: raise ImportError('\nYou have to install MulensModel first!\n') -__version__ = '0.34.1' +__version__ = '0.34.2' class UlensModelFit(object): @@ -3180,7 +3180,7 @@ def _second_Y_axis_warnings(self, flux, labels, A_values, A_min, A_max): "side) Y-axis scale are from {:} to {:},\nbut the range " "of plotted magnifications is from {:} to {:}, hence, " "the second scale is not plotted") - args = [np.min(A_values), np.max(A_values), A_min[0], A_max[0]] + args = [np.min(A_values), np.max(A_values), A_min, A_max] warnings.warn(msg.format(*args)) return True