From 4b1c1a62342246350d0c92ef9ed42e38d395c6c1 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Sat, 13 Jul 2024 14:49:52 -0400 Subject: remove unnesesary comments --- qolab/data/trace.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'qolab') diff --git a/qolab/data/trace.py b/qolab/data/trace.py index 87e0b4e..bd2bdb8 100644 --- a/qolab/data/trace.py +++ b/qolab/data/trace.py @@ -57,10 +57,8 @@ def loadTraceRawHeaderAndData(fname, tryCompressedIfMissing=True): break header=yaml.load(str.join('\n', headerstr), Loader=yaml.BaseLoader) # now we load the data itself - # data=np.genfromtxt(fname, comments='%', delimiter='\t') - # Note: pandas reads csv faster by factor of 8 then numpy.genfromtxt - # data=pandas.read_csv('/home/evmik/hopping_trace_20220706_02141.dat', comment='%', delimiter='\t', header=None) tracefile.seek(0) # rewind file to the beginning + # Note: pandas reads csv faster by factor of 8 then numpy.genfromtxt df = pandas.read_csv(tracefile, comment='%', delimiter='\t', header=None) data = df.to_numpy() return(header, data) -- cgit v1.2.3