From 0be0b734634095396d0a1b4b02077869a975749b Mon Sep 17 00:00:00 2001 From: stevenhua0320 Date: Sun, 11 Aug 2024 11:50:49 +0800 Subject: [PATCH] add attributes in eq method --- src/diffpy/srmise/dataclusters.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/diffpy/srmise/dataclusters.py b/src/diffpy/srmise/dataclusters.py index 4cb46be..e5a14e6 100644 --- a/src/diffpy/srmise/dataclusters.py +++ b/src/diffpy/srmise/dataclusters.py @@ -81,6 +81,10 @@ def __eq__(self, other): and self.lastcluster_idx == other.lastcluster_idx and self.lastpoint_idx == other.lastpoint_idx and self.status == other.status + and self.INIT == other.INIT + and self.READY == other.READY + and self.CLUSTERING == other.CLUSTERING + and self.DONE == other.DONE ) def clear(self):