Skip to content

Commit d297d58

Browse files
committed
replace cache with lru_cache
1 parent d17336f commit d297d58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ibllib/atlas/flatmaps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Module that hold techniques to project the brain volume onto 2D images for visualisation purposes
33
"""
4-
from functools import lru_cache, cache
4+
from functools import lru_cache
55
import logging
66

77
import pandas as pd
@@ -209,7 +209,7 @@ def format_coord(x, y):
209209
return ax
210210

211211

212-
@cache
212+
@lru_cache(maxsize=None)
213213
def _swanson_labels_positions():
214214
"""
215215
This functions computes label positions to overlay on the Swanson flatmap

0 commit comments

Comments
 (0)