Closed dkloving closed 1 year ago
What happens with old numpy versions and this patch? Is there some numpy version way earlier than 1.24 where np.bool behaves differently from the builtin bool?
What happens with old numpy versions and this patch? Is there some numpy version way earlier than 1.24 where np.bool behaves differently from the builtin bool?
Sorry for the delayed response.
I looked into this and as far as I can tell np.bool
has always been an alias for Python's built-in bool
datatype, so the proposed change should have no effect on users of earlier versions.
I did some googling and it appears that the (lack of?) wisdom of the Internet agrees with you -- it's a safe change even on older software.
Oh, just noticed -- you should do your PR against the "dev" branch from your dev branch.
I changed the base branch to "dev." This PR is a good reminder that we should revisit the whole oifits i/o in ehtim - it is not often used and is probably out of date.
This PR removes unneeded import of
bool
fromnumpy
which is now deprecated. The change allows installation and use ofeht-imaging
in environments that requirenumpy >= 1.24
.Note: see here for where the breaking numpy change was made.