keithley-tempcontrol 0.16.13__py3-none-any.whl → 0.17.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -165,6 +165,9 @@ def start():
165
165
  multiprocessing.current_process().name = "daq6510_cs (start)"
166
166
 
167
167
  with remote_logging():
168
+ from egse.env import setup_env
169
+ setup_env()
170
+
168
171
  try:
169
172
  control_server = DAQ6510ControlServer()
170
173
  control_server.serve()
@@ -194,6 +197,9 @@ def stop():
194
197
 
195
198
  multiprocessing.current_process().name = "daq6510_cs (stop)"
196
199
 
200
+ from egse.env import setup_env
201
+ setup_env()
202
+
197
203
  try:
198
204
  with DAQ6510Proxy() as daq:
199
205
  sp = daq.get_service_proxy()
@@ -210,6 +216,9 @@ def status():
210
216
 
211
217
  multiprocessing.current_process().name = "daq6510_cs (status)"
212
218
 
219
+ from egse.env import setup_env
220
+ setup_env()
221
+
213
222
  endpoint = get_endpoint(SERVICE_TYPE, PROTOCOL, HOSTNAME, COMMANDING_PORT)
214
223
 
215
224
  if is_control_server_active(endpoint):
@@ -59,7 +59,7 @@ class DAQ6510(DeviceInterface, DeviceTransport):
59
59
 
60
60
  self._is_connection_open = False
61
61
 
62
- def initialize(self, commands: list[tuple[str, bool]] = None, reset_device: bool = False):
62
+ def initialize(self, commands: list[tuple[str, bool]] = None, reset_device: bool = False) -> list[str | None]:
63
63
  """Initialize the device with optional reset and command sequence.
64
64
 
65
65
  Performs device initialization by optionally resetting the device and then
@@ -74,21 +74,25 @@ class DAQ6510(DeviceInterface, DeviceTransport):
74
74
  the command sequence. Defaults to False.
75
75
 
76
76
  Returns:
77
- None
77
+ Response for each of the commands, or None when no response was expected.
78
78
 
79
79
  Raises:
80
80
  Any exceptions raised by the underlying write() or trans() methods,
81
81
  typically communication errors or device timeouts.
82
82
 
83
83
  Example:
84
- >>> device.initialize([
85
- ... ("*IDN?", True), # Query device ID, expect response
86
- ... ("SYST:ERR?", True), # Check for errors, expect response
87
- ... ("OUTP ON", False) # Enable output, no response expected
88
- ... ], reset_device=True)
84
+ responses = device.initialize(
85
+ [
86
+ ("*IDN?", True), # Query device ID, expect response
87
+ ("SYST:ERR?", True), # Check for errors, expect response
88
+ ("OUTP ON", False) # Enable output, no response expected
89
+ ],
90
+ reset_device=True
91
+ )
89
92
  """
90
93
 
91
94
  commands = commands or []
95
+ responses = []
92
96
 
93
97
  if reset_device:
94
98
  logger.info(f"Resetting the {self.device_name}...")
@@ -399,7 +399,7 @@ class DAQ6510Monitor:
399
399
 
400
400
 
401
401
  class DAQMonitorClient:
402
- """Simple client for interacting with the DAQ Monitor Service."""
402
+ """A simple client for interacting with the DAQ Monitor Service."""
403
403
 
404
404
  def __init__(self, server_address: str = "localhost", port: int = DAQ_MON_CMD_PORT, timeout: float = 5.0):
405
405
  """Initialize the client.
@@ -2,7 +2,6 @@
2
2
  #
3
3
  import subprocess
4
4
  import sys
5
- from pathlib import Path
6
5
 
7
6
  import rich
8
7
  import typer
@@ -13,6 +13,8 @@ Keithley DAQ6510:
13
13
 
14
14
  Keithley Control Server:
15
15
 
16
+ SERVICE_TYPE: DAQ6510
17
+ PROCESS_NAME: daq6510_cs
16
18
  PROTOCOL: tcp
17
19
  HOSTNAME: localhost # The hostname that client shall connect to, e.g. pleiad01 @ KU Leuven
18
20
  COMMANDING_PORT: 6920 # The port on which the controller listens to commands - REQ-REP
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: keithley-tempcontrol
3
- Version: 0.16.13
3
+ Version: 0.17.0
4
4
  Summary: Keithley Temperature Control for CGSE
5
5
  Author: IvS KU Leuven
6
6
  Maintainer-email: Rik Huygen <rik.huygen@kuleuven.be>, Sara Regibo <sara.regibo@kuleuven.be>
@@ -3,16 +3,16 @@ egse/tempcontrol/keithley/daq6510.py,sha256=pe12HIC2Yav5ZCGYecoQzhypYcCwecEaJpWZ
3
3
  egse/tempcontrol/keithley/daq6510.yaml,sha256=dHHVNyUpOQpdrZpnxPbT6slsl-8Gbnhifj4Q8QOfOYg,4400
4
4
  egse/tempcontrol/keithley/daq6510_acs.py,sha256=6sGc2E8gg67ZwkNmHtNSsunC6cN0IYNwtJXC3yMYcpM,64
5
5
  egse/tempcontrol/keithley/daq6510_adev.py,sha256=WjBuQvhpeXr2WHVB54mACM5WQwnecSY6I3iG2Cajs5c,2247
6
- egse/tempcontrol/keithley/daq6510_cs.py,sha256=I6OEOUmb2MG3rc4Ri9SL0MP6a7fQn0POfLUBEsfv-t0,7533
7
- egse/tempcontrol/keithley/daq6510_dev.py,sha256=a1Z3LtEeKa_z7c3g7l6-C4s9CZ-Z8BineQf-Bl6NZjQ,12728
8
- egse/tempcontrol/keithley/daq6510_mon.py,sha256=uLTv-fsXhQW7KDzOWUwmDoZ-9_cYjqvgm9A0R0rOvXs,20930
6
+ egse/tempcontrol/keithley/daq6510_cs.py,sha256=EZO-jiiqIB9NRWGhHFhFIVnrqJk_B6hL3u9aWRLvLBc,7697
7
+ egse/tempcontrol/keithley/daq6510_dev.py,sha256=NGBsX7YV4eao6pZWafyLULFPbTA0q3ZEgcHJorc_X1E,12899
8
+ egse/tempcontrol/keithley/daq6510_mon.py,sha256=Xbn2U-l9uxPwNN1-aYW72oJodL2sx13suCiPPbDSti0,20932
9
9
  egse/tempcontrol/keithley/daq6510_protocol.py,sha256=v8FUrxEm7bnRzM_iQzW0mMCHTgAMZw4f2Ronl8fdKIE,2676
10
10
  egse/tempcontrol/keithley/daq6510_sim.py,sha256=SojDv2nc2mFHwRC1UG7TOed5cWo9hh44jQDO9kDM9Ic,7534
11
11
  keithley_tempcontrol/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  keithley_tempcontrol/cgse_explore.py,sha256=y_FkFxJW0vdqGNp9yTU0ELBKxby74-ev3fTuf99Vl1s,400
13
- keithley_tempcontrol/cgse_services.py,sha256=n26xIu4o1rH3Duqi8E_ELugXZSobsXkI4foA5eNjhtU,2491
14
- keithley_tempcontrol/settings.yaml,sha256=3wBkC3BT0RfhIC5_BHcCrBw9l650nUpQgxJsWFmE62g,1391
15
- keithley_tempcontrol-0.16.13.dist-info/METADATA,sha256=oOumzQGe1pFUOFr7OXIbS9xpP_yThp_fmUl6Ojd0RH0,963
16
- keithley_tempcontrol-0.16.13.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
17
- keithley_tempcontrol-0.16.13.dist-info/entry_points.txt,sha256=_0j2BwcwPi4LlRrhvEWfp9GO9KT8WhCkJe2gFgMzOPs,491
18
- keithley_tempcontrol-0.16.13.dist-info/RECORD,,
13
+ keithley_tempcontrol/cgse_services.py,sha256=tndviv2rvygkNSsGy1oA43VfFpyVkdB9If-9sVlLbK4,2466
14
+ keithley_tempcontrol/settings.yaml,sha256=wbrgSZQAdqFl6AxiLJIN36UsdiVHQCzdsgi7Hs7dv7o,1467
15
+ keithley_tempcontrol-0.17.0.dist-info/METADATA,sha256=0wCEln0iDx5aQCGBh3i1rHGGS-Wdj-oDOCR3KC6Q7Is,962
16
+ keithley_tempcontrol-0.17.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
17
+ keithley_tempcontrol-0.17.0.dist-info/entry_points.txt,sha256=_0j2BwcwPi4LlRrhvEWfp9GO9KT8WhCkJe2gFgMzOPs,491
18
+ keithley_tempcontrol-0.17.0.dist-info/RECORD,,