From 27876eb2fcac2226e7dbdbdf363a50164af61a48 Mon Sep 17 00:00:00 2001 From: Charles Jekel Date: Fri, 20 Dec 2019 07:50:50 -0800 Subject: [PATCH] bug in is simple quad; simple quads should have crossTF = 0, 2, or 4, and complex otherwise --- similaritymeasures/VERSION | 2 +- similaritymeasures/similaritymeasures.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/similaritymeasures/VERSION b/similaritymeasures/VERSION index 1d0ba9e..267577d 100644 --- a/similaritymeasures/VERSION +++ b/similaritymeasures/VERSION @@ -1 +1 @@ -0.4.0 +0.4.1 diff --git a/similaritymeasures/similaritymeasures.py b/similaritymeasures/similaritymeasures.py index f75af41..2781113 100644 --- a/similaritymeasures/similaritymeasures.py +++ b/similaritymeasures/similaritymeasures.py @@ -99,6 +99,8 @@ def is_simple_quad(ab, bc, cd, da): crossTF = cross <= 0 if sum(crossTF) == 2: return True + elif sum(crossTF) == 4: + return True else: return False