PySigmaKoki 2.1.2__tar.gz → 2.1.4__tar.gz
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.
- pysigmakoki-2.1.4/PKG-INFO +29 -0
- pysigmakoki-2.1.4/PySigmaKoki.egg-info/PKG-INFO +29 -0
- {PySigmaKoki-2.1.2 → pysigmakoki-2.1.4}/PySigmaKoki.egg-info/SOURCES.txt +1 -1
- {PySigmaKoki-2.1.2 → pysigmakoki-2.1.4}/README.md +3 -0
- pysigmakoki-2.1.4/pyproject.toml +25 -0
- {PySigmaKoki-2.1.2 → pysigmakoki-2.1.4}/sigma_koki.py +18 -4
- PySigmaKoki-2.1.2/PKG-INFO +0 -17
- PySigmaKoki-2.1.2/PySigmaKoki.egg-info/PKG-INFO +0 -17
- PySigmaKoki-2.1.2/setup.py +0 -19
- {PySigmaKoki-2.1.2 → pysigmakoki-2.1.4}/PySigmaKoki.egg-info/dependency_links.txt +0 -0
- {PySigmaKoki-2.1.2 → pysigmakoki-2.1.4}/PySigmaKoki.egg-info/requires.txt +0 -0
- {PySigmaKoki-2.1.2 → pysigmakoki-2.1.4}/PySigmaKoki.egg-info/top_level.txt +0 -0
- {PySigmaKoki-2.1.2 → pysigmakoki-2.1.4}/setup.cfg +0 -0
@@ -0,0 +1,29 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: PySigmaKoki
|
3
|
+
Version: 2.1.4
|
4
|
+
Summary: Python Interface for Instruments by Sigma Koki
|
5
|
+
Author-email: Akira Okumura <oxon@mac.com>
|
6
|
+
License: BSD License
|
7
|
+
Project-URL: Repository, https://github.com/akira-okumura/PySigmaKoki.git
|
8
|
+
Project-URL: Issues, https://github.com/akira-okumura/PySigmaKoki/issues
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
10
|
+
Classifier: License :: OSI Approved :: BSD License
|
11
|
+
Classifier: Operating System :: OS Independent
|
12
|
+
Description-Content-Type: text/markdown
|
13
|
+
Requires-Dist: pyserial
|
14
|
+
|
15
|
+
# PySigmaKoki
|
16
|
+
Python module to control Sigma Koki stages
|
17
|
+
|
18
|
+
# Install
|
19
|
+
$ pip install pysigmakoki
|
20
|
+
|
21
|
+
# Example
|
22
|
+
>>> import sigma_koki
|
23
|
+
>>> gsc02 = sigma_koki.GSC02()
|
24
|
+
>>> gsc02.open('/dev/tty.usbserial-FTT75V89A')
|
25
|
+
>>> gsc02.setSpeed(1, 50, 20000, 1000, 50, 20000, 1000)
|
26
|
+
>>> gsc02.returnToMechanicalOrigin('+', '+')
|
27
|
+
>>> gsc02.move(-50000, -50000)
|
28
|
+
>>> gsc02.getStatus()
|
29
|
+
'- 50000,- 50000,K,K,R'
|
@@ -0,0 +1,29 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: PySigmaKoki
|
3
|
+
Version: 2.1.4
|
4
|
+
Summary: Python Interface for Instruments by Sigma Koki
|
5
|
+
Author-email: Akira Okumura <oxon@mac.com>
|
6
|
+
License: BSD License
|
7
|
+
Project-URL: Repository, https://github.com/akira-okumura/PySigmaKoki.git
|
8
|
+
Project-URL: Issues, https://github.com/akira-okumura/PySigmaKoki/issues
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
10
|
+
Classifier: License :: OSI Approved :: BSD License
|
11
|
+
Classifier: Operating System :: OS Independent
|
12
|
+
Description-Content-Type: text/markdown
|
13
|
+
Requires-Dist: pyserial
|
14
|
+
|
15
|
+
# PySigmaKoki
|
16
|
+
Python module to control Sigma Koki stages
|
17
|
+
|
18
|
+
# Install
|
19
|
+
$ pip install pysigmakoki
|
20
|
+
|
21
|
+
# Example
|
22
|
+
>>> import sigma_koki
|
23
|
+
>>> gsc02 = sigma_koki.GSC02()
|
24
|
+
>>> gsc02.open('/dev/tty.usbserial-FTT75V89A')
|
25
|
+
>>> gsc02.setSpeed(1, 50, 20000, 1000, 50, 20000, 1000)
|
26
|
+
>>> gsc02.returnToMechanicalOrigin('+', '+')
|
27
|
+
>>> gsc02.move(-50000, -50000)
|
28
|
+
>>> gsc02.getStatus()
|
29
|
+
'- 50000,- 50000,K,K,R'
|
@@ -0,0 +1,25 @@
|
|
1
|
+
[build-system]
|
2
|
+
requires = ["setuptools >= 61.0", "wheel"]
|
3
|
+
build-backend = "setuptools.build_meta"
|
4
|
+
|
5
|
+
[project]
|
6
|
+
name = "PySigmaKoki"
|
7
|
+
version = "2.1.4"
|
8
|
+
description = "Python Interface for Instruments by Sigma Koki"
|
9
|
+
authors = [
|
10
|
+
{ name = "Akira Okumura", email = "oxon@mac.com" }
|
11
|
+
]
|
12
|
+
readme = {file = "README.md", content-type = "text/markdown"}
|
13
|
+
license = {text = "BSD License"}
|
14
|
+
classifiers = [
|
15
|
+
"Programming Language :: Python :: 3",
|
16
|
+
"License :: OSI Approved :: BSD License",
|
17
|
+
"Operating System :: OS Independent"
|
18
|
+
]
|
19
|
+
dependencies = [
|
20
|
+
"pyserial"
|
21
|
+
]
|
22
|
+
|
23
|
+
[project.urls]
|
24
|
+
Repository = "https://github.com/akira-okumura/PySigmaKoki.git"
|
25
|
+
Issues = "https://github.com/akira-okumura/PySigmaKoki/issues"
|
@@ -24,12 +24,13 @@ class BaseStageController(object):
|
|
24
24
|
self.__acknowledge = True
|
25
25
|
|
26
26
|
def setBaudRate(self, rate):
|
27
|
-
|
28
|
-
|
29
|
-
|
27
|
+
rates = {'GSC-02': (2400, 4800, 9600, 19200),
|
28
|
+
'SHOT-702' : (38400,),
|
29
|
+
'SHOT-702H' : (38400,)}
|
30
|
+
if rate in rates[self.__product]:
|
30
31
|
self.__baudRate = rate
|
31
32
|
else:
|
32
|
-
raise ValueError('Attempting to set an invalid buard rate %d to %s.
|
33
|
+
raise ValueError('Attempting to set an invalid buard rate of %d to %s. The rate must be chosen from %s.' % (rate, self.__product, rates[self.__product]))
|
33
34
|
|
34
35
|
def disableAcknowledge(self):
|
35
36
|
self.__acknowledge = False
|
@@ -225,6 +226,19 @@ class BaseStageController(object):
|
|
225
226
|
"""
|
226
227
|
return self.query('!:')
|
227
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
|
+
|
228
242
|
def getVersion(self):
|
229
243
|
"""
|
230
244
|
Returns the ROM version
|
PySigmaKoki-2.1.2/PKG-INFO
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.1
|
2
|
-
Name: PySigmaKoki
|
3
|
-
Version: 2.1.2
|
4
|
-
Summary: Python Interface for Instruments by Sigma Koki
|
5
|
-
Home-page: https://github.com/akira-okumura/PySigmaKoki
|
6
|
-
Author: Akira Okumura
|
7
|
-
Author-email: oxon@mac.com
|
8
|
-
License: BSD License
|
9
|
-
Platform: MacOS :: MacOS X
|
10
|
-
Platform: POSIX
|
11
|
-
Platform: Windows
|
12
|
-
Classifier: Topic :: Terminals :: Serial
|
13
|
-
Classifier: Development Status :: 5 - Production/Stable
|
14
|
-
Classifier: Programming Language :: Python
|
15
|
-
|
16
|
-
|
17
|
-
This is an interface module for instruments produced by Sigma Koki
|
@@ -1,17 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.1
|
2
|
-
Name: PySigmaKoki
|
3
|
-
Version: 2.1.2
|
4
|
-
Summary: Python Interface for Instruments by Sigma Koki
|
5
|
-
Home-page: https://github.com/akira-okumura/PySigmaKoki
|
6
|
-
Author: Akira Okumura
|
7
|
-
Author-email: oxon@mac.com
|
8
|
-
License: BSD License
|
9
|
-
Platform: MacOS :: MacOS X
|
10
|
-
Platform: POSIX
|
11
|
-
Platform: Windows
|
12
|
-
Classifier: Topic :: Terminals :: Serial
|
13
|
-
Classifier: Development Status :: 5 - Production/Stable
|
14
|
-
Classifier: Programming Language :: Python
|
15
|
-
|
16
|
-
|
17
|
-
This is an interface module for instruments produced by Sigma Koki
|
PySigmaKoki-2.1.2/setup.py
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
from distutils.core import setup
|
2
|
-
import sigma_koki
|
3
|
-
|
4
|
-
setup(name='PySigmaKoki',
|
5
|
-
version='2.1.2',
|
6
|
-
description='Python Interface for Instruments by Sigma Koki',
|
7
|
-
author='Akira Okumura',
|
8
|
-
author_email='oxon@mac.com',
|
9
|
-
license='BSD License',
|
10
|
-
platforms=['MacOS :: MacOS X', 'POSIX', 'Windows'],
|
11
|
-
url='https://github.com/akira-okumura/PySigmaKoki',
|
12
|
-
py_modules=['sigma_koki'],
|
13
|
-
install_requires=['pyserial'],
|
14
|
-
classifiers=['Topic :: Terminals :: Serial',
|
15
|
-
'Development Status :: 5 - Production/Stable',
|
16
|
-
'Programming Language :: Python',
|
17
|
-
],
|
18
|
-
long_description=sigma_koki.__doc__
|
19
|
-
)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|