From b226c31a0f29c8f91df5a0b41a91599058e42291 Mon Sep 17 00:00:00 2001 From: Sophie T Date: Tue, 28 Feb 2023 15:04:02 +0000 Subject: [PATCH] Remove unused import --- tests/core/test_lateralsheet.py | 2 -- tests/io/test_meshes.py | 2 +- tyssue/core/lateralsheet.py | 5 ----- tyssue/geometry/planar_geometry.py | 1 - tyssue/io/meshes.py | 2 +- 5 files changed, 2 insertions(+), 10 deletions(-) diff --git a/tests/core/test_lateralsheet.py b/tests/core/test_lateralsheet.py index 02d92cf3..83f0b091 100644 --- a/tests/core/test_lateralsheet.py +++ b/tests/core/test_lateralsheet.py @@ -1,5 +1,3 @@ -import numpy as np -import pytest from numpy.testing import assert_almost_equal from tyssue import PlanarGeometry diff --git a/tests/io/test_meshes.py b/tests/io/test_meshes.py index 826d17d7..85360b71 100644 --- a/tests/io/test_meshes.py +++ b/tests/io/test_meshes.py @@ -11,7 +11,7 @@ def test_to_mesh(): mesh = meshes.to_mesh(sheet) assert sheet.Nv == mesh.points.shape[0] assert sheet.Nf == mesh.cells[1].data.shape[0] - + def test_save_import_triangular_mesh(): sheet = Sheet("test", *three_faces_sheet()) diff --git a/tyssue/core/lateralsheet.py b/tyssue/core/lateralsheet.py index 40439625..1c828eba 100644 --- a/tyssue/core/lateralsheet.py +++ b/tyssue/core/lateralsheet.py @@ -1,8 +1,3 @@ -import warnings - -import numpy as np -import pandas as pd - from .objects import get_prev_edges from .sheet import Sheet diff --git a/tyssue/geometry/planar_geometry.py b/tyssue/geometry/planar_geometry.py index 5a775a8b..1338792a 100644 --- a/tyssue/geometry/planar_geometry.py +++ b/tyssue/geometry/planar_geometry.py @@ -2,7 +2,6 @@ from .base_geometry import BaseGeometry from skimage.draw import polygon -from scipy import ndimage class PlanarGeometry(BaseGeometry): diff --git a/tyssue/io/meshes.py b/tyssue/io/meshes.py index 14ad1e0a..827ddd06 100644 --- a/tyssue/io/meshes.py +++ b/tyssue/io/meshes.py @@ -14,7 +14,7 @@ def to_mesh(sheet): max_nsides = sheet.face_df["num_sides"].max() + 1 cell_types.update( { - i: f"polygon" for i in range(5, max_nsides) + i: f'{"polygon"}' for i in range(5, max_nsides) } ) sheet.reset_index(order=True)