Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test how it should be #842

Merged
merged 1 commit into from
Dec 12, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 14 additions & 0 deletions ctapipe/coordinates/tests/test_coordinates.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
import numpy as np
import astropy.units as u
from astropy.coordinates import SkyCoord


def test_cam_to_nominal():
from ctapipe.coordinates import CameraFrame, HorizonFrame, NominalFrame

telescope_pointing = SkyCoord(alt=70 * u.deg, az=0 * u.deg, frame=HorizonFrame())
array_pointing = SkyCoord(alt=72 * u.deg, az=0 * u.deg, frame=HorizonFrame())

cam_frame = CameraFrame(focal_length=28 * u.m, pointing_direction=telescope_pointing)
cam = SkyCoord(x=0.5 * u.m, y=0.1 * u.m, frame=cam_frame)

nom_frame = NominalFrame(array_direction=array_pointing)
cam.transform_to(nom_frame)


def test_cam_to_tel():
Expand Down