Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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')
)
Expand Down
2 changes: 1 addition & 1 deletion fiasco/util/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Loading