From 848284747722ed665cdf88d8d39db5599e692ce3 Mon Sep 17 00:00:00 2001 From: Will Barnes Date: Wed, 11 Feb 2026 14:33:14 -0500 Subject: [PATCH 1/2] all indices output from vectorize where should be of type int --- fiasco/util/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fiasco/util/tools.py b/fiasco/util/tools.py index 140b2ddc..15f6221b 100644 --- a/fiasco/util/tools.py +++ b/fiasco/util/tools.py @@ -31,7 +31,7 @@ def vectorize_where(x_1, x_2): x_2 = np.atleast_1d(x_2) if not np.isin(x_2, x_1).all(): raise ValueError('All elements of second input array must be found in first input array.') - return np.array([np.where(x_1==x)[0] for x in x_2]).squeeze() + return np.array([np.where(x_1==x)[0] for x in x_2]).squeeze().astype(int) def vectorize_where_sum(x_1, x_2, y, axis=None): From 3a6df6754e6174e2b8467776e8dc6106d1ebcd01 Mon Sep 17 00:00:00 2001 From: Will Barnes Date: Wed, 11 Feb 2026 14:33:37 -0500 Subject: [PATCH 2/2] only run v7 tests on demand --- .github/workflows/ci.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ec2fff8c..209e72d8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -68,11 +68,6 @@ jobs: test_database_v7: if: | ( - github.event_name != 'pull_request' && ( - github.ref_name != 'main' || - github.event_name == 'workflow_dispatch' - ) - ) || ( github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'Run v7 tests') )