Add support for _V04 products

This commit is contained in:
XANTRONIX Industrial 2025-02-16 21:31:34 -05:00
parent 6411d0516f
commit 2f7abbba4c

View file

@ -18,6 +18,7 @@ class ArchiveDateError(Exception):
class ArchiveProductType(enum.Enum): class ArchiveProductType(enum.Enum):
DEFAULT = 1 DEFAULT = 1
V03 = 3 V03 = 3
V04 = 4
class ArchiveProduct(): class ArchiveProduct():
__slots__ = 'typeof', 'radar', 'timestamp', __slots__ = 'typeof', 'radar', 'timestamp',
@ -44,6 +45,8 @@ class ArchiveProduct():
if self.typeof == ArchiveProductType.V03: if self.typeof == ArchiveProductType.V03:
ret += "_V03" ret += "_V03"
elif self.typeof == ArchiveProductType.V04:
ret += "_V04"
ret += ".gz" ret += ".gz"
@ -55,6 +58,8 @@ class ArchiveProduct():
if self.typeof == ArchiveProductType.V03: if self.typeof == ArchiveProductType.V03:
ret += "_V03" ret += "_V03"
elif self.typeof == ArchiveProductType.V04:
ret += "_V04"
ret += ".gz" ret += ".gz"