diff --git a/AmpScan/trim.py b/AmpScan/trim.py index 6c146c48074c8469f43091573bd1812391938eb3..3e198b8e2d7c8ae1c4b39797df5f1cd654f89fdb 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