Skip to content

Commit

Permalink
restore header None
Browse files Browse the repository at this point in the history
  • Loading branch information
h-mayorquin committed Oct 28, 2023
1 parent 0b6d31a commit 44966f8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 44966f8

Please sign in to comment.