Skip to content

Commit 8a5eadd

Browse files
authored
Merge pull request #122 from fact-project/fix_planar_collision
Fix planar name collision with ctapipe, fixes #121
2 parents 413afaf + fde7bb4 commit 8a5eadd

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ before_install:
1616
- pip install --upgrade pip
1717

1818
install:
19-
- pip install restructuredtext-lint sphinx pygments
19+
- pip install restructuredtext-lint sphinx~=1.8 pygments
2020
- pip install .
2121

2222
script:

fact/VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.22.1
1+
0.22.2

fact/analysis/statistics.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def power_law(
5858
Simple power law
5959
6060
.. math::
61-
\phi = \phi_0 \cdot (E / E_{}\mathrm{ref}})^{\gamma}
61+
\phi = \phi_0 \cdot (E / E_{\mathrm{ref}})^{\gamma}
6262
6363
Parameters
6464
----------

fact/coordinates/camera_frame.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from astropy.coordinates.representation import CartesianRepresentation
1717
import astropy.units as u
1818

19-
from .representation import PlanarRepresentation
19+
from .representation import FACTPlanarRepresentation
2020
from ..instrument.constants import FOCAL_LENGTH_MM, LOCATION
2121
import numpy as np
2222

@@ -44,7 +44,7 @@ class CameraFrame(BaseCoordinateFrame):
4444
False means x points up and y points left,
4545
which is definition in the original FACTPixelMap file.
4646
'''
47-
default_representation = PlanarRepresentation
47+
default_representation = FACTPlanarRepresentation
4848
pointing_direction = CoordinateAttribute(frame=AltAz, default=None)
4949
obstime = TimeAttribute(default=None)
5050
location = EarthLocationAttribute(default=LOCATION)

fact/coordinates/representation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import numpy as np
55

66

7-
class PlanarRepresentation(BaseRepresentation):
7+
class FACTPlanarRepresentation(BaseRepresentation):
88
'''
99
Representation of a point in a 2D plane. This is needed for coordinate
1010
frames to store their coordinates internally.

0 commit comments

Comments
 (0)