Skip to content

Commit

Permalink
Cast points coordinates in gradient-boosted eqs
Browse files Browse the repository at this point in the history
  • Loading branch information
santisoler committed Jun 18, 2024
1 parent 2f8e5b3 commit cf5ecb6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion harmonica/_equivalent_sources/gradient_boosted.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,9 @@ def fit(self, coordinates, data, weights=None):
weights = weights.ravel()
# Build point sources
if self.points is None:
self.points_ = self._build_points(coordinates)
self.points_ = tuple(
p.astype(self.dtype) for p in self._build_points(coordinates)
)
else:
self.points_ = tuple(
p.astype(self.dtype) for p in vdb.n_1d_arrays(self.points, 3)
Expand Down

0 comments on commit cf5ecb6

Please sign in to comment.