bioAI-Oslo / Spikeometric

Spiking Neural Network Simulator based on Generalized Linear Models
GNU General Public License v3.0
7 stars 1 forks source link

Robust file list #5

Closed lepmik closed 1 year ago

lepmik commented 1 year ago

This line gives all content in the directory, including directories and non-supported file extensions https://github.com/bioAI-Oslo/Spikeometric/blob/c3a205483ae9e0a82910665f78a16c547430b6e6/spikeometric/datasets/connectivity_dataset.py#L56 would be more robust with e.g.

files = path.glob('*.npy') + path.glob('*.pt')