fact-project / pyfact

A python package with useful methods concernig the FACT-telescope
13 stars 3 forks source link

"PlanarRepresentation already defined" when using ctapipe #121

Closed nbiederbeck closed 5 years ago

nbiederbeck commented 5 years ago

When using

from fact.analysis.source import calc_off_position

and

from ctapipe.coordinates import CameraFrame

astropy raises ValueError: Representation class planar already defined, because both packages internally define representation.PlanarRepresentation, which is exactly the same in both packages (in pyfact copied from ctapipe).

One can bypass this problem as shown here. Alternatively one can push the PlanarRepresentation to astropy.

Further discussion in this Astropy Issue.

nbiederbeck commented 5 years ago

See corresponding ctapipe issue