From 2e2c982a7b42bde6575af7a13530e7b886eb0c63 Mon Sep 17 00:00:00 2001 From: Raphael <raphael.sturgis@gmail.com> Date: Wed, 13 Apr 2022 11:37:36 +0200 Subject: [PATCH] fix depreciation warning --- skais/ais/ais_trajectory.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/skais/ais/ais_trajectory.py b/skais/ais/ais_trajectory.py index 336f6da..dca3bcc 100644 --- a/skais/ais/ais_trajectory.py +++ b/skais/ais/ais_trajectory.py @@ -358,11 +358,11 @@ class AISTrajectory(AISPoints): elif type(features) is list: features_vectors = self.df[features].to_numpy() for c in features_vectors.T: - bounds.append((0, max(c))) + bounds.append([0, max(c)]) elif type(features) is str: features_vectors = self.df[[features]].to_numpy() for c in features_vectors.T: - bounds.append((0, max(c))) + bounds.append([0, max(c)]) elif type(features) is dict: bounds = list(features.values()) features_vectors = self.df[features.keys()].to_numpy() @@ -383,6 +383,6 @@ class AISTrajectory(AISPoints): generate_links(data, positions, height, width, lower_lat, upper_lat, lower_lon, upper_lon) else: - generate_points_with_features(data, positions, features_vectors, bounds, node_size, height, width, + generate_points_with_features(data, positions, features_vectors, np.array(bounds), node_size, height, width, lower_lat, upper_lat, lower_lon, upper_lon, link) return data -- GitLab