NeuromorphicProcessorProject / snn_toolbox

Toolbox for converting analog to spiking neural networks (ANN to SNN), and running them in a spiking neuron simulator.
MIT License
362 stars 105 forks source link

Issue while creating a csv file. #78

Closed ssaphale closed 3 years ago

ssaphale commented 3 years ago

I'm trying to create csv file for the MIT BIH dataset using the following code.

from IPython.display import display import matplotlib.pyplot as plt %matplotlib inline import numpy as np import os import shutil import csv import wfdb import scipy as sp from wfdb import processing from scipy import signal import heartpy as hp

name = (100,101)

with open('MIT-BIH10.csv','w') as t1: writer = csv.writer(t1, delimiter=',',lineterminator='\n') for file in name: sig,record = wfdb.rdsamp(recordname = str(file)) annotation = wfdb.rdann(recordname = str(file), extension='atr')

I'm getting and error cannot unpack non-iterable Record object at sig, record = wfdb.rdsamp(recordname= str(file)) it was working completely fine for 2 days but now the issue is srising what might be the problem. Please help.

rbodo commented 3 years ago

Sorry, this is not related to SNN toolbox.