Skip to content

Commit

Permalink
Fix time column definition when date is not present
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjholland committed Oct 18, 2024
1 parent 9f4bf68 commit 2f0320d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyprobe/cyclers/neware.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def time(self) -> pl.Expr:
Returns:
pl.Expr: A polars expression for the time column.
"""
if self.date is not None:
if "Date" in self._column_map.keys():
return (
(self.date.diff().dt.total_microseconds().cum_sum() / 1e6)
.fill_null(strategy="zero")
Expand Down

0 comments on commit 2f0320d

Please sign in to comment.