From 9200662511af4c070ece4510296be9cc3807e83b Mon Sep 17 00:00:00 2001 From: ojs1g14 <ojs1g14@soton.ac.uk> Date: Fri, 28 Sep 2018 16:29:27 +0100 Subject: [PATCH] added trim test --- AmpScan/trim.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AmpScan/trim.py b/AmpScan/trim.py index 6c146c4..3e198b8 100644 --- a/AmpScan/trim.py +++ b/AmpScan/trim.py @@ -30,7 +30,7 @@ class trimMixin(object): >>> amp.planarTrim(100, 2) """ - if isinstance(height, float) and isinstance(plane, int): + if type(height)==float: # planar values for each vert on face fv = self.vert[self.faces, plane] # Number points on each face are above cut plane @@ -51,4 +51,4 @@ class trimMixin(object): self.vert = self.vert[~delv, :] self.calcStruct() else: - raise TypeError("height arg must be a float and plane arg must be an int") \ No newline at end of file + raise TypeError("height arg must be a float") \ No newline at end of file -- GitLab