From a97161d8db56d1e10ddcd1a61cfab13ddff37c8d Mon Sep 17 00:00:00 2001 From: Deborah Khider Date: Thu, 3 Oct 2024 15:18:26 -0700 Subject: [PATCH 1/2] Update visual.py Compatibility with scipy 1.14.1 --- cfr/visual.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cfr/visual.py b/cfr/visual.py index 4fbab1f..287ce6e 100644 --- a/cfr/visual.py +++ b/cfr/visual.py @@ -17,7 +17,7 @@ from scipy import stats from scipy.stats.mstats import mquantiles from scipy.stats import cumfreq, gaussian_kde -from scipy.integrate import cumtrapz +from scipy.integrate import cumulative_trapezoid from matplotlib.lines import Line2D from matplotlib.patches import Patch from matplotlib.legend_handler import HandlerLine2D @@ -1622,4 +1622,4 @@ def add_annotation(ax, fs=20, loc_x=0, loc_y=1.03, start=0, style=None): loc_x, loc_y, letter_str, transform=v.transAxes, size=fs[i], weight='bold', - ) \ No newline at end of file + ) From 902fea5744fa5884c3aa2a41e85b7ca4635fbadf Mon Sep 17 00:00:00 2001 From: Feng Zhu Date: Thu, 3 Oct 2024 22:52:05 +0000 Subject: [PATCH 2/2] remove unused import --- cfr/visual.py | 1 - oryx-build-commands.txt | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 oryx-build-commands.txt diff --git a/cfr/visual.py b/cfr/visual.py index 287ce6e..ebbf8cb 100644 --- a/cfr/visual.py +++ b/cfr/visual.py @@ -17,7 +17,6 @@ from scipy import stats from scipy.stats.mstats import mquantiles from scipy.stats import cumfreq, gaussian_kde -from scipy.integrate import cumulative_trapezoid from matplotlib.lines import Line2D from matplotlib.patches import Patch from matplotlib.legend_handler import HandlerLine2D diff --git a/oryx-build-commands.txt b/oryx-build-commands.txt new file mode 100644 index 0000000..d647bdf --- /dev/null +++ b/oryx-build-commands.txt @@ -0,0 +1,2 @@ +PlatformWithVersion=Python +BuildCommands=conda env create --file environment.yml --prefix ./venv --quiet