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') ) 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):