Skip to content

Commit

Permalink
Update util.py
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-grim authored Oct 31, 2024
1 parent eac48eb commit 93bd93e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/deep_neurographs/utils/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ---
Expand Down

0 comments on commit 93bd93e

Please sign in to comment.