Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
PasCoolDevices
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bliss
Tango Servers
PasCoolDevices
Commits
c0ac0257
"README.txt" did not exist on "73fd27c96753f75b0a435ebaf24b7706e8c50e99"
Commit
c0ac0257
authored
4 months ago
by
Valentin Valls
Browse files
Options
Downloads
Patches
Plain Diff
Fixed duplicated function name
- Just for convenience with type checker tools
parent
78caa124
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pascooldevices/DiscretePositionsMotor.py
+3
-3
3 additions, 3 deletions
src/pascooldevices/DiscretePositionsMotor.py
with
3 additions
and
3 deletions
src/pascooldevices/DiscretePositionsMotor.py
+
3
−
3
View file @
c0ac0257
...
@@ -263,7 +263,7 @@ class DiscretePositionsMotor(Device):
...
@@ -263,7 +263,7 @@ class DiscretePositionsMotor(Device):
return
self
.
motor_position
.
magnitude
return
self
.
motor_position
.
magnitude
@position.write
@position.write
def
position
(
self
,
value
):
def
set_
position
(
self
,
value
):
print
(
"
moving motor to %s
"
%
value
)
print
(
"
moving motor to %s
"
%
value
)
if
self
.
motor_unit
is
None
or
self
.
motor_lims
is
None
:
if
self
.
motor_unit
is
None
or
self
.
motor_lims
is
None
:
raise
RuntimeError
(
raise
RuntimeError
(
...
@@ -288,7 +288,7 @@ class DiscretePositionsMotor(Device):
...
@@ -288,7 +288,7 @@ class DiscretePositionsMotor(Device):
return
self
.
motor_position_id
return
self
.
motor_position_id
@positionId.write
@positionId.write
def
positionId
(
self
,
position_name
):
def
set_
positionId
(
self
,
position_name
):
if
self
.
unreachable
is
None
:
if
self
.
unreachable
is
None
:
raise
RuntimeError
(
raise
RuntimeError
(
'
(%s) Moving to PositionID=
"
%s
"
is not possible. Motor being initialized
'
'
(%s) Moving to PositionID=
"
%s
"
is not possible. Motor being initialized
'
...
@@ -330,7 +330,7 @@ class DiscretePositionsMotor(Device):
...
@@ -330,7 +330,7 @@ class DiscretePositionsMotor(Device):
return
json
.
dumps
(
allpos
)
return
json
.
dumps
(
allpos
)
@jsonConfiguration.write
@jsonConfiguration.write
def
jsonConfiguration
(
self
,
configuration
):
def
set_
jsonConfiguration
(
self
,
configuration
):
return
"
not implemented yet
"
return
"
not implemented yet
"
@attribute
(
dtype
=
(
str
,),
max_dim_x
=
32
)
@attribute
(
dtype
=
(
str
,),
max_dim_x
=
32
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment