Skip to content

NDMeta.rebin can't handle all inputs #859

Open

Description

@Cadair

Describe the bug

I'm pretty sure it breaks on -1 and 1 but I don't have a good MWE sorry

To Reproduce

No response

Screenshots

No response

System Details

No response

Installation method

No response

Activity

  1. DanRyanIrish commented on Jun 24, 2025

    @DanRyanIrish
    Member

    I don't seem to be able to reproduce this bug. The below MWE works.

    >>> import astropy.units as u
    >>> from ndcube import NDCube
    
    >>> meta = NDMeta({"exposure_time": np.arange(9)*u.s}, axes={"exposure_time": 0})
    >>> meta.slice[1]
    {'exposure_time': <Quantity 1. s>}
    >>> meta.slice[-1]
    {'exposure_time': <Quantity 8. s>}
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

    BugProbably a bug.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions