8000 query_strip is not implemented for NESTED · Issue #843 · healpy/healpy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
query_strip is not implemented for NESTED #843
Open
@d70-t

Description

@d70-t

When trying to pass nest=True to healpy.query_strip, the Python interpreter crashes:

>>> import healpy
>>> healpy.query_strip(2, 1, 2, nest=True)
Error encountered at /Users/runner/work/healpy/healpy/healpixsubmodule/src/cxx/Healpix_cxx/healpix_base.cc, line 1058
(function void T_Healpix_Base<I>::query_strip_internal(double, double, bool, rangeset<T>&) const [with I = long long int])

query_strip not yet implemented for NESTED

terminate called after throwing an instance of 'PlanckError'

It is not hard to work around this issue, e.g.:

>>> import healpy
>>> healpy.ring2nest(2, healpy.query_strip(2, 1, 2))
array([19,  0, 23,  4, 27,  8, 31, 12, 17, 22, 21, 26, 25, 30, 29, 18, 16,
       35, 20, 39, 24, 43, 28, 47])

but it would be great if healpy would do this workaround internally to make users less confused :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0