Skip to content

Commit cfb7acd

Browse files
Merge pull request #109 from colleenjg/cjg-dev
Fixed incorrect scaling of BVCs firingrates I#108.
2 parents e715cd6 + 842b0b2 commit cfb7acd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ratinabox/Neurons.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1540,7 +1540,8 @@ def __init__(self, Agent, params={}):
15401540
with warnings.catch_warnings():
15411541
warnings.simplefilter("ignore")
15421542
# ignores the warning raised during initialisation of the BVCs
1543-
self.cell_fr_norm = np.max(self.get_state(evaluate_at=None, pos=locs), axis=1)
1543+
cell_fr_norm = np.max(self.get_state(evaluate_at=None, pos=locs), axis=1)
1544+
self.cell_fr_norm = (cell_fr_norm - self.min_fr) / (self.max_fr - self.min_fr)
15441545

15451546
# list of colors for each cell, just used by `.display_vector_cells()` plotting function
15461547
color = np.array(matplotlib.colors.to_rgba(self.color if self.color is not None else "C1")).reshape(1,-1)

0 commit comments

Comments
 (0)