Skip to content

Commit 17c836a

Browse files
authored
Merge pull request #101 from fact-project/astropy_deprecation
Fix astropy deprecation warning
2 parents 8cbc6b2 + cde4964 commit 17c836a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

fact/VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.16.0
1+
0.16.1

fact/coordinates/representation.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from astropy.coordinates import BaseRepresentation, CartesianRepresentation
22
import astropy.units as u
33
from collections import OrderedDict
4-
from astropy.utils.compat.numpy import broadcast_arrays
4+
import numpy as np
55

66

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

4444
try:
45-
x, y = broadcast_arrays(x, y, subok=True)
45+
x, y = np.broadcast_arrays(x, y, subok=True)
4646
except ValueError:
4747
raise ValueError("Input parameters x and y cannot be broadcast")
4848

0 commit comments

Comments
 (0)