Skip to content

Commit

Permalink
make spike brightnesses more realistic (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbhughes authored Dec 6, 2024
1 parent 2eac1f2 commit a1b234c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simpunch/spike.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def read_hit_map(path: str) -> np.ndarray:
num_spikes, width, height = map(int, line.split())
table = np.genfromtxt(path, skip_header=1)
image = np.zeros((width, height), dtype=float)
image[table[:, 0].astype(int), table[:, 1].astype(int)] = table[:, 2] / np.percentile(table[:, 2], 80)
image[table[:, 0].astype(int), table[:, 1].astype(int)] = table[:, 2] / np.percentile(table[:, 2], 50)
return image

def load_spike_library() -> np.ndarray:
Expand Down

0 comments on commit a1b234c

Please sign in to comment.