Skip to content

Commit

Permalink
Merge pull request #101 from fact-project/astropy_deprecation
Browse files Browse the repository at this point in the history
Fix astropy deprecation warning
  • Loading branch information
maxnoe authored Feb 27, 2018
2 parents 8cbc6b2 + cde4964 commit 17c836a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fact/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.16.0
0.16.1
4 changes: 2 additions & 2 deletions fact/coordinates/representation.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from astropy.coordinates import BaseRepresentation, CartesianRepresentation
import astropy.units as u
from collections import OrderedDict
from astropy.utils.compat.numpy import broadcast_arrays
import numpy as np


class PlanarRepresentation(BaseRepresentation):
Expand Down Expand Up @@ -42,7 +42,7 @@ def __init__(self, x, y, copy=True, **kwargs):
raise u.UnitsError("x and y should have matching physical types")

try:
x, y = broadcast_arrays(x, y, subok=True)
x, y = np.broadcast_arrays(x, y, subok=True)
except ValueError:
raise ValueError("Input parameters x and y cannot be broadcast")

Expand Down

0 comments on commit 17c836a

Please sign in to comment.