Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
GEPARD
GEPARD
Commits
dedfb64d
Commit
dedfb64d
authored
Oct 15, 2018
by
Lars Bittrich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small cleanup in WITecCOM
parent
910bc09a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
WITecCOM.py
WITecCOM.py
+2
-4
No files found.
WITecCOM.py
View file @
dedfb64d
...
...
@@ -34,7 +34,6 @@ from socket import gethostname
class
WITecCOM
(
RamanBase
):
CLSID
=
"{C45E77CE-3D66-489A-B5E2-159F443BD1AA}"
hostname
=
"unknown"
def
__init__
(
self
,
hostname
=
None
):
super
().
__init__
()
if
hostname
is
None
:
...
...
@@ -56,7 +55,7 @@ class WITecCOM(RamanBase):
self
.
PosYCurInterface
=
IBUCSCore
.
GetSubSystemDefaultInterface
(
"Status|Software|SamplePositioner|CurrentPositionY"
)
self
.
PosZCurInterface
=
IBUCSCore
.
GetSubSystemDefaultInterface
(
"Status|Software|SamplePositioner|CurrentPositionZ"
)
self
.
PosZCurUserInterface
=
IBUCSCore
.
GetSubSystemDefaultInterface
(
"Status|Hardware|Controller|DataChannels|StepperMotorPosition"
)
# Get Float Manipulators
self
.
PosXFloatMan
=
win32com
.
client
.
CastTo
(
self
.
PosXInterface
,
'IBUCSFloat'
)
self
.
PosYFloatMan
=
win32com
.
client
.
CastTo
(
self
.
PosYInterface
,
'IBUCSFloat'
)
self
.
PosZFloatMan
=
win32com
.
client
.
CastTo
(
self
.
PosZInterface
,
'IBUCSFloat'
)
...
...
@@ -140,7 +139,6 @@ class WITecCOM(RamanBase):
width
,
height
=
self
.
ImageWidthMan
.
GetValue
(),
self
.
ImageHeightMan
.
GetValue
()
return
rx
*
width
,
ry
*
height
def
disconnect
(
self
):
if
self
.
connected
:
self
.
IBUCSAccess
.
RequestWriteAccess
(
False
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment