Skip to content

Commit

Permalink
Merge pull request #109 from colleenjg/cjg-dev
Browse files Browse the repository at this point in the history
Fixed incorrect scaling of BVCs firingrates I#108.
  • Loading branch information
TomGeorge1234 authored Mar 28, 2024
2 parents e715cd6 + 842b0b2 commit cfb7acd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ratinabox/Neurons.py
Original file line number Diff line number Diff line change
Expand Up @@ -1540,7 +1540,8 @@ def __init__(self, Agent, params={}):
with warnings.catch_warnings():
warnings.simplefilter("ignore")
# ignores the warning raised during initialisation of the BVCs
self.cell_fr_norm = np.max(self.get_state(evaluate_at=None, pos=locs), axis=1)
cell_fr_norm = np.max(self.get_state(evaluate_at=None, pos=locs), axis=1)
self.cell_fr_norm = (cell_fr_norm - self.min_fr) / (self.max_fr - self.min_fr)

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

0 comments on commit cfb7acd

Please sign in to comment.