Skip to content

memory policy warning in fits with numpy 1.22.0.dev #12324

Description

@nstarman

Description

See https://github.com/astropy/astropy/runs/4042351752?check_suite_focus=true

RuntimeWarning: Trying to dealloc data, but a memory policy is not set. If you take ownership of the data, you must set a base owning the data (e.g. a PyCapsule).

This appears in astropy/io/fits/tests/test_image.py

Steps to Reproduce

Run the CI with a fix for #12322, e.g. #12323

System Details

Python 3.10 CI

Activity

  1. nstarman commented on Oct 29, 2021

    @nstarman
    MemberAuthor

    Great, thanks @saimn.
    I don't think I have time today to fix this, so if anyone wants a go, that would be great!

  2. pllim commented on Oct 30, 2021

    @pllim
    Member

    This is a symptom of a larger problem? Should we open a follow-up issue to un-ignore in the future and fix the real cause?

  3. changed the title [-]memory policy warning in fits failing all PRs[/-] [+]memory policy warning in fits with 1.22.0.dev[/+] on Nov 2, 2021
  4. saimn commented on Nov 2, 2021

    @saimn
    Contributor

    Yes, this is clearly something we should look at and try to fix.

  5. reopened this on Nov 2, 2021
  6. changed the title [-]memory policy warning in fits with 1.22.0.dev[/-] [+]memory policy warning in fits with numpy 1.22.0.dev[/+] on Nov 3, 2021
  7. added 3 commits that reference this issue on Nov 9, 2022
    cdff855
    3340b48
    506681c
  8. added 3 commits that reference this issue on Dec 11, 2022
    f3298a7
    5fb0787
    32a80a1
  9. added a commit that references this issue on Mar 13, 2023
    fb6c5a0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions