Skip to content

position_to_pix_index wrong behaviour for x,y outside camera #2795

@moralejo

Description

@moralejo

def position_to_pix_index(self, x, y):

from ctapipe.instrument import CameraGeometry
import astropy.units as u
import numpy as np
geom = CameraGeometry.from_name("LSTCam")
geom.position_to_pix_index(1*u.m, 1*u.m)

array(-9223372036854775808)

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