Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iexcode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
29id
iexcode
Commits
967dbc6e
Commit
967dbc6e
authored
2 years ago
by
rodolakis
Browse files
Options
Downloads
Patches
Plain Diff
fixed scanXAS
parent
9aa432a7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
build/lib/iexcode/instruments/IEX_VPU.py
+3
-4
3 additions, 4 deletions
build/lib/iexcode/instruments/IEX_VPU.py
iexcode/instruments/IEX_VPU.py
+3
-13
3 additions, 13 deletions
iexcode/instruments/IEX_VPU.py
with
6 additions
and
17 deletions
build/lib/iexcode/instruments/IEX_VPU.py
+
3
−
4
View file @
967dbc6e
...
...
@@ -32,9 +32,8 @@ def ID_pvs():
'
energy_sp
'
:
pv
+
'
EnergySet.VAL
'
,
'
start_ramp
'
:
pv
+
'
StartRamp.VAL
'
,
'
energy_eV_rbv
'
:
pv
+
'
EnergyRBV
'
,
'
energy_eV_sp
'
:
pv
+
'
EnergyScanSeteV.VAL
'
,
'
scan_val
'
:
pv
+
'
EnergyScanSeteV.VAL
'
,
'
scan_rbv
'
:
pv
+
'
EnergyRBV
'
,
'
energy_eV_sp
'
:
pv
+
'
EnergyScanSeteV
'
,
'
scan_val
'
:
pv
+
'
EnergyScanSeteV
'
,
'
table_dir
'
:
pv
+
'
TableDirection
'
,
'
By_q
'
:
pv
+
'
ByqRdbk
'
,
'
Bx_q
'
:
pv
+
'
BxqRdbk
'
,
...
...
@@ -537,7 +536,7 @@ def ID_scan_pvs():
returns the rbv and val for scanning
"""
val_pv
=
ID_pvs
()[
'
scan_val
'
]
rbv_pv
=
ID_pvs
()[
'
scan_rbv
'
]
rbv_pv
=
""
return
rbv_pv
,
val_pv
def
ID_scan_fillin
(
mda
,
scan_dim
,
start
,
stop
,
step
,
**
kwargs
):
...
...
This diff is collapsed.
Click to expand it.
iexcode/instruments/IEX_VPU.py
+
3
−
13
View file @
967dbc6e
...
...
@@ -32,9 +32,8 @@ def ID_pvs():
'
energy_sp
'
:
pv
+
'
EnergySet.VAL
'
,
'
start_ramp
'
:
pv
+
'
StartRamp.VAL
'
,
'
energy_eV_rbv
'
:
pv
+
'
EnergyRBV
'
,
'
energy_eV_sp
'
:
pv
+
'
EnergyScanSeteV.VAL
'
,
'
scan_val
'
:
pv
+
'
EnergyScanSeteV.VAL
'
,
'
scan_rbv
'
:
pv
+
'
EnergyRBV
'
,
'
energy_eV_sp
'
:
pv
+
'
EnergyScanSeteV
'
,
'
scan_val
'
:
pv
+
'
EnergyScanSeteV
'
,
'
table_dir
'
:
pv
+
'
TableDirection
'
,
'
By_q
'
:
pv
+
'
ByqRdbk
'
,
'
Bx_q
'
:
pv
+
'
BxqRdbk
'
,
...
...
@@ -339,15 +338,6 @@ def _ID_write_SP_proc(keV):
sleep
(
1
)
def
_ID_bw_ok
(
keV
):
ID_SP
=
ID_get_sp
(
verbose
=
False
)
ID_bw
=
ID_SP
*
0.095
ID_diff
=
abs
(
ID_get
()
-
keV
)
if
ID_diff
>
ID_bw
:
return
False
else
:
return
True
def
ID_set
(
keV
,
verbose
=
True
):
"""
"
Sets the ID set point to a specific value (hv(eV)) which will not likely be optimum
"
...
...
@@ -537,7 +527,7 @@ def ID_scan_pvs():
returns the rbv and val for scanning
"""
val_pv
=
ID_pvs
()[
'
scan_val
'
]
rbv_pv
=
ID_pvs
()[
'
scan_rbv
'
]
rbv_pv
=
""
return
rbv_pv
,
val_pv
def
ID_scan_fillin
(
mda
,
scan_dim
,
start
,
stop
,
step
,
**
kwargs
):
...
...
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