From 00b3be3e6b8b6c7667e9d239c74a429ed5e052d2 Mon Sep 17 00:00:00 2001 From: Jim Kring Date: Wed, 24 Jan 2024 08:34:18 -0800 Subject: [PATCH] enum_value as a class attribute, bytes as a property --- nptdms/timestamp.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nptdms/timestamp.py b/nptdms/timestamp.py index 870de76..312658a 100644 --- a/nptdms/timestamp.py +++ b/nptdms/timestamp.py @@ -16,12 +16,11 @@ class TdmsTimestamp(object): :ivar ~.seconds: Seconds since the epoch as a signed integer :ivar ~.second_fractions: A positive number of 2^-64 fractions of a second """ + enum_value = 0x44 def __init__(self, seconds, second_fractions): self.seconds = seconds self.second_fractions = second_fractions - self.enum_value = 0x44 - self.bytes = _struct_pack('