PySigmaKoki 2.1.3__py3-none-any.whl → 2.1.4__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.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: PySigmaKoki
3
- Version: 2.1.3
3
+ Version: 2.1.4
4
4
  Summary: Python Interface for Instruments by Sigma Koki
5
5
  Author-email: Akira Okumura <oxon@mac.com>
6
6
  License: BSD License
@@ -16,7 +16,7 @@ Requires-Dist: pyserial
16
16
  Python module to control Sigma Koki stages
17
17
 
18
18
  # Install
19
- $ pip install -i https://pypi.anaconda.org/oxon/simple pysigmakoki
19
+ $ pip install pysigmakoki
20
20
 
21
21
  # Example
22
22
  >>> import sigma_koki
@@ -0,0 +1,5 @@
1
+ sigma_koki.py,sha256=eJaDI6KjS6FgEaqjGJi7NWAaAedM-DxCRGL_FENfahE,11159
2
+ pysigmakoki-2.1.4.dist-info/METADATA,sha256=z0roQclYQW8jLjztzfbjk80GhiULKyHKDzye_Wwg3i8,958
3
+ pysigmakoki-2.1.4.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
4
+ pysigmakoki-2.1.4.dist-info/top_level.txt,sha256=Zbq-FJdx-r0smE3UcnxNBcJ2wVwCX8pGfow0rejSOWk,11
5
+ pysigmakoki-2.1.4.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: setuptools (80.8.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
sigma_koki.py CHANGED
@@ -226,6 +226,19 @@ class BaseStageController(object):
226
226
  """
227
227
  return self.query('!:')
228
228
 
229
+ def waitForReady(self, timeout_in_sec):
230
+ """
231
+ Sleep up to timeout_in_sec until the ACK3 state becomes ready.
232
+ """
233
+ for i in range(timeout_in_sec*10):
234
+ ack3 = self.getACK3()
235
+ if ack3 == 'R': # ready
236
+ break
237
+ elif ack3 == 'B': # busy
238
+ time.sleep(0.1)
239
+ elif: # unknown state
240
+ time.sleep(0.1) # wait anyway
241
+
229
242
  def getVersion(self):
230
243
  """
231
244
  Returns the ROM version
@@ -1,5 +0,0 @@
1
- sigma_koki.py,sha256=wKozv-LgckuduhMAgyxqHouSR4MnQl87qQDgpOxuJ2M,10733
2
- PySigmaKoki-2.1.3.dist-info/METADATA,sha256=ueqhmN4z_qWsjD1yjYvowYgwsv4mXNJKYv4-QwV9Qvw,999
3
- PySigmaKoki-2.1.3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
4
- PySigmaKoki-2.1.3.dist-info/top_level.txt,sha256=Zbq-FJdx-r0smE3UcnxNBcJ2wVwCX8pGfow0rejSOWk,11
5
- PySigmaKoki-2.1.3.dist-info/RECORD,,