Skip to content

Commit 8cb303f

Browse files
committed
[geocom/csv] added memory device option to job listing
1 parent f246703 commit 8cb303f

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

src/geocompy/geo/csv.py

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
DeviceClass,
2929
PowerSource,
3030
Reflectorless,
31-
Property
31+
Property,
32+
Device
3233
)
3334
from .gctypes import (
3435
GeoComSubsystem,
@@ -811,14 +812,22 @@ def set_datetime_new(
811812
]
812813
)
813814

814-
def setup_listing(self) -> GeoComResponse[None]:
815+
def setup_listing(
816+
self,
817+
device: Device | str = Device.INTERNAL
818+
) -> GeoComResponse[None]:
815819
"""
816820
RPC 5072, ``CSV_SetupList``
817821
818822
.. versionadded:: GeoComp-VivaTPS
819823
820824
Prepares listing of the jobs in memory.
821825
826+
Parameters
827+
----------
828+
device : Device | str, optional
829+
Memory device, by default INTERNAL
830+
822831
Returns
823832
-------
824833
GeoComResponse
@@ -832,8 +841,10 @@ def setup_listing(self) -> GeoComResponse[None]:
832841
abort_listing
833842
834843
"""
844+
_device = get_enum(Device, device)
835845
return self._request(
836-
5072
846+
5072,
847+
[_device]
837848
)
838849

839850
def list(self) -> GeoComResponse[tuple[str, str, int, int, str]]:

0 commit comments

Comments
 (0)