File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 1414"""
1515from __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+ )
2022from ..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 ]
You can’t perform that action at this time.
0 commit comments