Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix numpy scalar edge case bug #4879

Merged

Conversation

GarethCabournDavies
Copy link
Contributor

Creating a dataset in HFile using a numpy scalar would pass this check as it has a dtype attribute, which isn't what we need here

Standard information about the request

This is a bug fix
This change affects: the offline search, the live search, inference, PyGRB
This change changes nothing
This change has been proposed using the contribution guidelines

Motivation

Bug fix

Links to any issues or associated PRs

This was causing problems in #4866

Testing performed

None

  • The author of this pull request confirms they will adhere to the code of conduct

Copy link
Contributor

@maxtrevor maxtrevor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does what we need

@maxtrevor maxtrevor mentioned this pull request Sep 13, 2024
@GarethCabournDavies GarethCabournDavies merged commit 405be55 into gwastro:master Sep 13, 2024
30 checks passed
@GarethCabournDavies GarethCabournDavies deleted the hfile_ndarray_bug branch September 13, 2024 15:20
prayush pushed a commit to prayush/pycbc that referenced this pull request Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants