From c9d4d41440c75a5eed64f7ed331582e65fbffe25 Mon Sep 17 00:00:00 2001 From: Miranda Mundt Date: Tue, 7 Jan 2025 13:03:07 -0700 Subject: [PATCH] Try printing avail statuses --- .github/workflows/test_branches.yml | 2 +- pyomo/contrib/pynumero/sparse/__init__.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_branches.yml b/.github/workflows/test_branches.yml index 3315c5250df..9c338c70c90 100644 --- a/.github/workflows/test_branches.yml +++ b/.github/workflows/test_branches.yml @@ -645,7 +645,7 @@ jobs: - name: Run Pyomo tests if: matrix.mpi == 0 run: | - $PYTHON_EXE -m pytest -v \ + $PYTHON_EXE -m pytest -v -s \ -W ignore::Warning ${{matrix.category}} \ pyomo `pwd`/pyomo-model-libraries \ `pwd`/examples `pwd`/doc --junitxml="TEST-pyomo.xml" diff --git a/pyomo/contrib/pynumero/sparse/__init__.py b/pyomo/contrib/pynumero/sparse/__init__.py index fc4b170f5a1..49f558d00e1 100644 --- a/pyomo/contrib/pynumero/sparse/__init__.py +++ b/pyomo/contrib/pynumero/sparse/__init__.py @@ -11,6 +11,9 @@ from pyomo.contrib.pynumero.dependencies import numpy_available, scipy_available +print("Numpy is available: ", numpy_available) +print("SciPy is available: ", scipy_available) + if numpy_available and scipy_available: from pyomo.contrib.pynumero.sparse.block_vector import ( BlockVector,