From 6e8e1cb520dbda0d688ebc04ab96d21536903e3a Mon Sep 17 00:00:00 2001
From: navaneet <navaneet@acni>
Date: Mon, 17 Aug 2026 21:09:56 +0530
Subject: [PATCH] fix(solid_mech.rings): indexing constants properly

Numpy>=2.0 no longer implicitly converts 1-D arrays to Python scalars for %-formatting, raising a TypeError. This is fixed. This was possibly an effect of [NEP 50](https://numpy.org/neps/nep-0050-scalar-promotion.html)
---
 pysph/examples/solid_mech/rings.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pysph/examples/solid_mech/rings.py b/pysph/examples/solid_mech/rings.py
index 035bb7a2d..488eece9a 100644
--- a/pysph/examples/solid_mech/rings.py
+++ b/pysph/examples/solid_mech/rings.py
@@ -70,7 +70,7 @@ def create_particles(self):
 
         print('Ellastic Collision with %d particles' % (x.size))
         print("Shear modulus G = %g, Young's modulus = %g, Poisson's ratio =%g"
-              % (pa.G, pa.E, pa.nu))
+              % (pa.G[0], pa.E[0], pa.nu[0]))
 
         u_f = 0.059
         pa.u = pa.cs * u_f * (2 * (x < 0) - 1)
