From 93bd93ee735f92979792c9e0cd54b4ef8beb00cb Mon Sep 17 00:00:00 2001 From: Anna Grim <108307071+anna-grim@users.noreply.github.com> Date: Wed, 30 Oct 2024 21:09:23 -0700 Subject: [PATCH] Update util.py --- src/deep_neurographs/utils/util.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/deep_neurographs/utils/util.py b/src/deep_neurographs/utils/util.py index 1413c60..023b6a6 100644 --- a/src/deep_neurographs/utils/util.py +++ b/src/deep_neurographs/utils/util.py @@ -477,10 +477,7 @@ def sample_once(my_container): sample """ - if type(my_container) is list: - return sample(my_container, 1)[0] - else: - return sample(list(my_container), 1)[0] + return sample(my_container, 1)[0] # --- dictionary utils ---