From 8300ee581b62ff7e2efd18e6ef28cb896d1f7e59 Mon Sep 17 00:00:00 2001 From: Andrecho <37243793+andrewendlinger@users.noreply.github.com> Date: Fri, 20 Feb 2026 21:47:45 +0000 Subject: [PATCH] fix: pin pandas and numpy to prevent strict typing crashes Pins pandas to <2.2.0 and numpy to <2.0.0 in package requirements. Recent updates to these libraries introduced strict type enforcement (e.g., preventing implicit upcasting), which causes LossySetitemError and empty DataFrame AttributeErrors during standard pyAMARES workflows. This temporary restriction restores immediate stability. --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index e4c9754..2dca02a 100644 --- a/setup.py +++ b/setup.py @@ -79,10 +79,10 @@ def run(self): install_requires = [ - "pandas>=1.1.0", + "pandas>=1.1.0,<2.2.0", "matplotlib>=3.1.3", "lmfit", - "numpy>=1.18.1", + "numpy>=1.18.1,<2.0.0", "scipy>=1.2.1", "sympy", "nmrglue",