From 0c24b914f6fe86f61179327c8b731411ea88839e Mon Sep 17 00:00:00 2001 From: Eleftherios Zisis Date: Sun, 6 Mar 2022 16:58:31 +0100 Subject: [PATCH] Fix warnings --- neurots/generate/soma.py | 2 +- tests/test_utils.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/neurots/generate/soma.py b/neurots/generate/soma.py index e1263406..71e82ceb 100644 --- a/neurots/generate/soma.py +++ b/neurots/generate/soma.py @@ -19,7 +19,7 @@ import numpy as np from scipy.spatial import ConvexHull # pylint: disable=no-name-in-module -from scipy.spatial.qhull import QhullError # pylint: disable=no-name-in-module +from scipy.spatial import QhullError # pylint: disable=no-name-in-module from neurots.generate import orientations from neurots.morphmath import rotation diff --git a/tests/test_utils.py b/tests/test_utils.py index 82200fff..c6304807 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -29,10 +29,10 @@ def test_format_values(): data = { "array_int": np.array([1, 2]), "array_float": np.array([1.1, 2.2]), - "array_obj": np.array(["a", [1, 2]]), + "array_obj": np.array(["a", [1, 2]], dtype=object), "2d_array_int": np.array([[1, 2]], ndmin=2), "2d_array_float": np.array([[1.1, 2.2]], ndmin=2), - "2d_array_obj": np.array([["a", [1, 2]]], ndmin=2), + "2d_array_obj": np.array([["a", [1, 2]]], ndmin=2, dtype=object), "float32": np.float32(1.1), "float64": np.float64(1.1), "int32": np.int32(1),