Skip to content

Commit

Permalink
fix: do not use lru_cache for method with unhashable argument
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjayankur31 committed Sep 11, 2024
1 parent 1128b1d commit b7f76df
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion neuroml/nml/helper_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,6 @@ def get_all_segments_in_group(self,
return all_segs
@lru_cache(maxsize=1000)
def get_ordered_segments_in_groups(self,
group_list: typing.List[str],
check_parentage: bool = False,
Expand Down
3 changes: 1 addition & 2 deletions neuroml/nml/nml.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-

#
# Generated Wed Sep 11 15:53:47 2024 by generateDS.py version 2.44.1.
# Generated Wed Sep 11 16:30:43 2024 by generateDS.py version 2.44.1.
# Python 3.11.9 (main, Aug 23 2024, 00:00:00) [GCC 14.2.1 20240801 (Red Hat 14.2.1-1)]
#
# Command line options:
Expand Down Expand Up @@ -48625,7 +48625,6 @@ def get_all_segments_in_group(

return all_segs

@lru_cache(maxsize=1000)
def get_ordered_segments_in_groups(
self,
group_list: typing.List[str],
Expand Down

0 comments on commit b7f76df

Please sign in to comment.