From 37a7b6e80839d1d66275891a4e1846f27dad5cb3 Mon Sep 17 00:00:00 2001 From: Ethan Coon Date: Mon, 22 Apr 2024 14:26:59 -0600 Subject: [PATCH] moves demos pointer, fixes bug in ats_xdmf --- docs/documentation/source/ats_demos | 2 +- tools/utils/ats_xdmf.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/documentation/source/ats_demos b/docs/documentation/source/ats_demos index 8297c37a3..bde4885e4 160000 --- a/docs/documentation/source/ats_demos +++ b/docs/documentation/source/ats_demos @@ -1 +1 @@ -Subproject commit 8297c37a3e39885ea2931c3791b86b3aa68fe06f +Subproject commit bde4885e4a0c4defd7a83027a7b03941ac4dedf8 diff --git a/tools/utils/ats_xdmf.py b/tools/utils/ats_xdmf.py index 3c7ec4dd0..afd508414 100644 --- a/tools/utils/ats_xdmf.py +++ b/tools/utils/ats_xdmf.py @@ -340,7 +340,7 @@ def meshElemPolygons(etype, coords, conn): if etype != 'HEX': raise RuntimeError("Only works for Hexs") - y_mean = np.array([c[1] for c in coords.values()]).mean() + y_mean = np.array([c[1] for c in coords]).mean() coords2 = np.array([[coords[i][0::2] for i in c[1:] if coords[i][1] > y_mean] for c in conn]) try: