We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4734fea commit ec2160fCopy full SHA for ec2160f
src/sed/loader/cfel/dataframe.py
@@ -156,10 +156,11 @@ def df_timestamp(self) -> pd.DataFrame:
156
timestamps = [ts_start + pd.Timedelta(seconds=cum_exp) for cum_exp in cumulative_exposure]
157
# add initial timestamp to the start of the list
158
timestamps.insert(0, ts_start)
159
+
160
+ timestamps = [(ts - pd.Timestamp("1970-01-01")) // pd.Timedelta("1s") for ts in timestamps]
161
# Create a DataFrame with the timestamps
162
ts_alias = self._config["columns"].get("timestamp")
163
df = pd.DataFrame({ts_alias: timestamps}, index=self.index)
-
164
return df
165
166
def validate_channel_keys(self) -> None:
tests/loader/cfel/test_get_elapsed
0 commit comments