Skip to content

Commit 3cee331

Browse files
authored
Merge pull request #3746 from akorgor/fix-nmnist-blocklist
Load `NMNIST_pixels_blocklist.txt` relative to script directory
2 parents ec05ed3 + 06421ff commit 3cee331

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pynest/examples/eprop_plasticity/eprop_supervised_classification_neuromorphic_mnist.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777

7878
import os
7979
import zipfile
80+
from pathlib import Path
8081

8182
import matplotlib as mpl
8283
import matplotlib.pyplot as plt
@@ -182,7 +183,7 @@
182183
# pixels. By omitting spike generators for pixels on this blocklist, we effectively reduce the total number of
183184
# input neurons and spike generators required, optimizing the network's resource usage.
184185

185-
pixels_blocklist = np.loadtxt("./NMNIST_pixels_blocklist.txt")
186+
pixels_blocklist = np.loadtxt(Path(__file__).resolve().parent / "NMNIST_pixels_blocklist.txt")
186187

187188
pixels_dict = {
188189
"n_x": 34, # number of pixels in horizontal direction

0 commit comments

Comments
 (0)