Skip to content
This repository has been archived by the owner on Aug 13, 2020. It is now read-only.

Commit

Permalink
forced array dtype to be float
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexS12 committed Nov 19, 2017
1 parent 67d6f3d commit 8dd95a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pyfme/models/state/position.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ class Position:

def __init__(self, geodetic, geocentric, earth):
# Geodetic coordinates: (geodetic lat, lon, height above ellipsoid)
self._geodetic_coordinates = np.asarray(geodetic) # rad
self._geodetic_coordinates = np.asarray(geodetic, dtype=float) # rad
# Geocentric coordinates (rotating with Earth): (x_geo, y_geo, z_geo)
self._geocentric_coordinates = np.asarray(geocentric) # m
self._geocentric_coordinates = np.asarray(geocentric, dtype=float) # m
# Earth coordinates (x_earth, y_earth, z_earth)
self._earth_coordinates = np.asarray(earth) # m
self._earth_coordinates = np.asarray(earth, dtype=float) # m

@abstractmethod
def update(self, coords):
Expand Down

0 comments on commit 8dd95a8

Please sign in to comment.