From 4b36a212ac8cc9613d1a7290a4d1a010e3e40f16 Mon Sep 17 00:00:00 2001 From: Robert Walker Date: Thu, 20 Nov 2025 21:50:32 -0800 Subject: [PATCH 1/3] added the option for CPS and FK green's tensors to be in dispacement --- mtuq/greens_tensor/CPS.py | 4 ++-- mtuq/greens_tensor/FK.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mtuq/greens_tensor/CPS.py b/mtuq/greens_tensor/CPS.py index f2f5cb1f..6d525cca 100644 --- a/mtuq/greens_tensor/CPS.py +++ b/mtuq/greens_tensor/CPS.py @@ -7,7 +7,7 @@ class GreensTensor(GreensTensorBase): """ - FK Green's tensor object + CPS Green's tensor object Overloads base class with machinery for working with CPS-style Green's functions @@ -19,7 +19,7 @@ def __init__(self, *args, **kwargs): if 'type:greens' not in self.tags: self.tags += ['type:greens'] - if 'type:velocity' not in self.tags: + if 'type:velocity' not in self.tags or 'type:displacement' not in self.tags: self.tags += ['type:velocity'] if 'units:m' not in self.tags: diff --git a/mtuq/greens_tensor/FK.py b/mtuq/greens_tensor/FK.py index dfa041e7..d647f4f3 100644 --- a/mtuq/greens_tensor/FK.py +++ b/mtuq/greens_tensor/FK.py @@ -29,7 +29,7 @@ def __init__(self, *args, **kwargs): if 'type:greens' not in self.tags: self.tags += ['type:greens'] - if 'type:velocity' not in self.tags: + if 'type:velocity' not in self.tags or 'type:displacement' not in self.tags: self.tags += ['type:velocity'] if 'units:m' not in self.tags: From 3d0cec64f295cc170eddb4085f42df3692372a12 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 23 Jan 2026 22:46:14 +0000 Subject: [PATCH 2/3] Fix CI: Add HDF5 dev headers for tables package The CI was failing because the 'tables' package (PyTables) requires HDF5 development headers to build from source. Added libhdf5-dev and pkg-config to the system dependencies installation step. Co-authored-by: langleyreview --- .github/workflows/python-app.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-app.yaml b/.github/workflows/python-app.yaml index 0051bd59..9f3eb920 100644 --- a/.github/workflows/python-app.yaml +++ b/.github/workflows/python-app.yaml @@ -17,8 +17,8 @@ jobs: steps: - - name: Install libfabric - run: sudo apt-get update && sudo apt-get install -y libfabric-bin + - name: Install system dependencies + run: sudo apt-get update && sudo apt-get install -y libfabric-bin libhdf5-dev pkg-config - uses: actions/checkout@v2 - name: Set up Python 3 From bc13da75737bd59b8a7682c94e6693668c5e9529 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 23 Jan 2026 22:46:59 +0000 Subject: [PATCH 3/3] Fix CI: Pin Python 3.11 for better compatibility The CI was using Python 3.14 (very new) which may cause compatibility issues with some packages. Pinning to Python 3.11 which is a stable version that should work well with all dependencies. Co-authored-by: langleyreview --- .github/workflows/python-app.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/python-app.yaml b/.github/workflows/python-app.yaml index 9f3eb920..131bacef 100644 --- a/.github/workflows/python-app.yaml +++ b/.github/workflows/python-app.yaml @@ -23,6 +23,8 @@ jobs: - uses: actions/checkout@v2 - name: Set up Python 3 uses: actions/setup-python@v2 + with: + python-version: '3.11' - name: pip installation # test pip installation first (much faster than conda)