HERA-Team / hera_pspec

HERA power spectrum estimation code and data formats
http://hera-pspec.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

Fix numpy warnings #366

Closed steven-murray closed 1 year ago

steven-murray commented 2 years ago

Removes np.int, np.str, np.float and np.complex and replaces them with their builtin counterparts.

Partially fixes #348 (but doesn't deal with the specific example raised there)

review-notebook-app[bot] commented 2 years ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

steven-murray commented 1 year ago

Thanks @adeliegorce, I fixed those :-)

codecov[bot] commented 1 year ago

Codecov Report

Base: 95.92% // Head: 95.92% // No change to project coverage :thumbsup:

Coverage data is based on head (25a317c) compared to base (3da86e5). Patch coverage: 98.66% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #366 +/- ## ======================================= Coverage 95.92% 95.92% ======================================= Files 17 17 Lines 6038 6038 ======================================= Hits 5792 5792 Misses 246 246 ``` | Flag | Coverage Δ | | |---|---|---| | unittests | `95.92% <98.66%> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HERA-Team#carryforward-flags-in-the-pull-request-comment) to find out more. | [Impacted Files](https://codecov.io/gh/HERA-Team/hera_pspec/pull/366?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HERA-Team) | Coverage Δ | | |---|---|---| | [hera\_pspec/pstokes.py](https://codecov.io/gh/HERA-Team/hera_pspec/pull/366/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HERA-Team#diff-aGVyYV9wc3BlYy9wc3Rva2VzLnB5) | `92.85% <87.50%> (ø)` | | | [hera\_pspec/container.py](https://codecov.io/gh/HERA-Team/hera_pspec/pull/366/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HERA-Team#diff-aGVyYV9wc3BlYy9jb250YWluZXIucHk=) | `94.09% <100.00%> (ø)` | | | [hera\_pspec/grouping.py](https://codecov.io/gh/HERA-Team/hera_pspec/pull/366/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HERA-Team#diff-aGVyYV9wc3BlYy9ncm91cGluZy5weQ==) | `97.53% <100.00%> (ø)` | | | [hera\_pspec/noise.py](https://codecov.io/gh/HERA-Team/hera_pspec/pull/366/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HERA-Team#diff-aGVyYV9wc3BlYy9ub2lzZS5weQ==) | `96.00% <100.00%> (ø)` | | | [hera\_pspec/pspecbeam.py](https://codecov.io/gh/HERA-Team/hera_pspec/pull/366/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HERA-Team#diff-aGVyYV9wc3BlYy9wc3BlY2JlYW0ucHk=) | `95.33% <100.00%> (ø)` | | | [hera\_pspec/pspecdata.py](https://codecov.io/gh/HERA-Team/hera_pspec/pull/366/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HERA-Team#diff-aGVyYV9wc3BlYy9wc3BlY2RhdGEucHk=) | `97.03% <100.00%> (ø)` | | | [hera\_pspec/testing.py](https://codecov.io/gh/HERA-Team/hera_pspec/pull/366/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HERA-Team#diff-aGVyYV9wc3BlYy90ZXN0aW5nLnB5) | `97.47% <100.00%> (ø)` | | | [hera\_pspec/utils.py](https://codecov.io/gh/HERA-Team/hera_pspec/pull/366/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HERA-Team#diff-aGVyYV9wc3BlYy91dGlscy5weQ==) | `90.37% <100.00%> (ø)` | | | [hera\_pspec/uvpspec.py](https://codecov.io/gh/HERA-Team/hera_pspec/pull/366/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HERA-Team#diff-aGVyYV9wc3BlYy91dnBzcGVjLnB5) | `97.54% <100.00%> (ø)` | | | [hera\_pspec/uvpspec\_utils.py](https://codecov.io/gh/HERA-Team/hera_pspec/pull/366/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HERA-Team#diff-aGVyYV9wc3BlYy91dnBzcGVjX3V0aWxzLnB5) | `95.69% <100.00%> (ø)` | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HERA-Team). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HERA-Team)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.