From 590267e7531a21c501dc6bbe9b05e42ee707c3d6 Mon Sep 17 00:00:00 2001 From: Eric Johnson Date: Mon, 24 Jan 2022 12:28:44 -0600 Subject: [PATCH] Update tsne.py Updated import of collections to reflect changes in Python 3.10. --- EMBEDR/tsne.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/EMBEDR/tsne.py b/EMBEDR/tsne.py index b48c43e..a81c1a6 100644 --- a/EMBEDR/tsne.py +++ b/EMBEDR/tsne.py @@ -24,7 +24,10 @@ ############################################################################### """ -from collections import Iterable +try: + from collections import Iterable +except ImportError as err: + from collections.abc import Iterable import EMBEDR.affinity as aff import EMBEDR.callbacks as cb