Skip to content

Commit df0a9a4

Browse files
committed
adjust tlen and csv paths to remove dependence on counter dataset
1 parent 570939c commit df0a9a4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎bil/api/formatNPSL.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def tlen(self) -> int:
202202
Returns:
203203
Duration in ms.
204204
"""
205-
return int(self.head["counter"].shape[0])
205+
return int(self.head["spikeRaster"].shape[0])
206206

207207
def by_time(self, key: int | slice) -> Span:
208208
"""Index by relative ms time.
@@ -220,7 +220,7 @@ def _init_meta(self) -> None:
220220
if self._df is not None:
221221
return
222222

223-
path = self.fetcher.get_file("trial.csv")
223+
path = self.fetcher.get_file("df/trial.csv")
224224
dataframe = pd.read_csv(path)
225225
dataframe = dataframe.sort_values(by="number").reset_index(drop=True)
226226
self.df = dataframe

0 commit comments

Comments
 (0)