Skip to content

Commit

Permalink
FIX layers 5 and 2 swapped depth dimension
Browse files Browse the repository at this point in the history
  • Loading branch information
cjayb authored and jasmainak committed Jun 10, 2021
1 parent c65bc1e commit f84f3cf
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions hnn_core/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ def _create_cell_coords(n_pyr_x, n_pyr_y, zdiff=1307.4):
The number of Pyramidal cells in y direction.
zdiff : float
Expressed as a positive DEPTH of L5 relative to L2
This is a deviation from the original, where L5 was defined at 0
This should not change interlaminar weight/delay calculations.
Expressed as a positive DEPTH of L2 relative to L5, where L5 is defined
to lie at z==0. Interlaminar weight/delay calculations (lamtha) are not
affected.
Returns
-------
Expand All @@ -54,9 +54,9 @@ def _create_cell_coords(n_pyr_x, n_pyr_y, zdiff=1307.4):
xxrange = np.arange(n_pyr_x)
yyrange = np.arange(n_pyr_y)

pos_dict['L2_pyramidal'] = [
pos for pos in it.product(xxrange, yyrange, [0])]
pos_dict['L5_pyramidal'] = [
pos for pos in it.product(xxrange, yyrange, [0])]
pos_dict['L2_pyramidal'] = [
pos for pos in it.product(xxrange, yyrange, [zdiff])]

# BASKET CELLS
Expand All @@ -72,9 +72,9 @@ def _create_cell_coords(n_pyr_x, n_pyr_y, zdiff=1307.4):
# append the z value for position for L2 and L5
# print(len(coords_sorted))

pos_dict['L2_basket'] = [pos_xy + (0,) for
pos_dict['L5_basket'] = [pos_xy + (0,) for
pos_xy in coords_sorted]
pos_dict['L5_basket'] = [
pos_dict['L2_basket'] = [
pos_xy + (zdiff,) for pos_xy in coords_sorted]

# ORIGIN
Expand Down

0 comments on commit f84f3cf

Please sign in to comment.