Skip to content

Commit e33f07a

Browse files
committed
Updated TPS1000 WIR
1 parent 62eb996 commit e33f07a

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/geocompy/tps1000/wir.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@
1414
"""
1515
from __future__ import annotations
1616

17-
from enum import Enum
18-
19-
from ..data import enumparser, toenum
17+
from ..data import (
18+
enumparser,
19+
toenum,
20+
FORMAT
21+
)
2022
from ..protocols import (
2123
GeoComSubsystem,
2224
GeoComResponse
@@ -29,10 +31,6 @@ class TPS1000WIR(GeoComSubsystem):
2931
This subsystem is responsible for the GSI data recording operations.
3032
"""
3133

32-
class FORMAT(Enum):
33-
GSI8 = 0
34-
GSI16 = 1
35-
3634
def get_rec_format(self) -> GeoComResponse[FORMAT]:
3735
"""
3836
RPC 8011, ``WIR_GetRecFormat``
@@ -48,7 +46,7 @@ def get_rec_format(self) -> GeoComResponse[FORMAT]:
4846
"""
4947
return self._request(
5048
8011,
51-
parsers=enumparser(self.FORMAT)
49+
parsers=enumparser(FORMAT)
5250
)
5351

5452
def set_rec_format(
@@ -70,7 +68,7 @@ def set_rec_format(
7068
GeoComResponse
7169
7270
"""
73-
_format = toenum(self.FORMAT, format)
71+
_format = toenum(FORMAT, format)
7472
return self._request(
7573
8012,
7674
[_format.value]

0 commit comments

Comments
 (0)