From 44966f861160bbd7031d4aa1d0c35b8d27ea7933 Mon Sep 17 00:00:00 2001 From: Heberto Mayorquin Date: Sat, 28 Oct 2023 16:41:40 +0200 Subject: [PATCH] restore header None --- .../datainterfaces/behavior/fictrac/fictracdatainterface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/neuroconv/datainterfaces/behavior/fictrac/fictracdatainterface.py b/src/neuroconv/datainterfaces/behavior/fictrac/fictracdatainterface.py index 5f8895162..7bf57b72e 100644 --- a/src/neuroconv/datainterfaces/behavior/fictrac/fictracdatainterface.py +++ b/src/neuroconv/datainterfaces/behavior/fictrac/fictracdatainterface.py @@ -193,7 +193,7 @@ def add_to_nwbfile( import pandas as pd # The first row only contains the session start time and invalid data - fictrac_data_df = pd.read_csv(self.file_path, sep=",", names=self.columns_in_dat_file) + fictrac_data_df = pd.read_csv(self.file_path, sep=",", header=None, names=self.columns_in_dat_file) # Get the timestamps timestamps = self.get_timestamps() @@ -278,7 +278,7 @@ def get_original_timestamps(self): import pandas as pd timestamp_index = self.columns_in_dat_file.index("timestamp") - fictrac_data_df = pd.read_csv(self.file_path, sep=",", usecols=[timestamp_index]) + fictrac_data_df = pd.read_csv(self.file_path, sep=",", header=None, usecols=[timestamp_index]) timestamps = fictrac_data_df[timestamp_index].values / 1000.0 # Transform to seconds