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
704ab844
Commit
704ab844
authored
2 years ago
by
jmcchesn
Browse files
Options
Downloads
Patches
Plain Diff
rebuild
parent
dcabe802
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
+6
-6
6 additions, 6 deletions
build/lib/iexcode/instruments/IEX_VPU.py
iexcode.egg-info/SOURCES.txt
+1
-1
1 addition, 1 deletion
iexcode.egg-info/SOURCES.txt
with
7 additions
and
7 deletions
build/lib/iexcode/instruments/IEX_VPU.py
+
6
−
6
View file @
704ab844
...
@@ -28,7 +28,7 @@ def ID_calc_SP(mono_grating,ID_mode,hv_eV): # Mode = state (0=RCP,1=LCP,2=V,3
...
@@ -28,7 +28,7 @@ def ID_calc_SP(mono_grating,ID_mode,hv_eV): # Mode = state (0=RCP,1=LCP,2=V,3
if
type
(
ID_mode
)
==
str
:
if
type
(
ID_mode
)
==
str
:
ID_state
=
ID_state_mode
(
ID_mode
)
ID_state
=
ID_state_mode
(
ID_mode
)
try
:
try
:
K
=
ID_
C
oef
(
mono_grating
,
ID_
mod
e
,
hv_eV
)
K
=
ID_
c
oef
(
mono_grating
,
ID_
stat
e
,
hv_eV
)
ID
=
poly
.
polyval
(
hv_eV
,
K
)
ID
=
poly
.
polyval
(
hv_eV
,
K
)
except
KeyError
:
except
KeyError
:
message_string
=
'
Not a valid ID mode!
'
+
"
\n
Valid Modes:
"
+
str
(
ID_mode_list
())
message_string
=
'
Not a valid ID mode!
'
+
"
\n
Valid Modes:
"
+
str
(
ID_mode_list
())
...
@@ -398,7 +398,7 @@ def ID_QP_mode_set(ID_mode,QP_ratio):
...
@@ -398,7 +398,7 @@ def ID_QP_mode_set(ID_mode,QP_ratio):
print
(
"
QP RBV =
"
,
ratio_RBV
,
"
%
"
)
print
(
"
QP RBV =
"
,
ratio_RBV
,
"
%
"
)
sleep
(
15
)
sleep
(
15
)
def
ID_
C
oef
(
grt
,
ID_
mod
e
,
hv_eV
):
# Mode = state (0=RCP,1=LCP,2=V,3=H);
def
ID_
c
oef
(
grt
,
ID_
stat
e
,
hv_eV
):
# Mode = state (0=RCP,1=LCP,2=V,3=H);
"""
Return the ID coeff for a given polarization mode and energy;
"""
Return the ID coeff for a given polarization mode and energy;
with Mode = 0 (RCP),1 (LCP), 2 (V), 3 (H).
with Mode = 0 (RCP),1 (LCP), 2 (V), 3 (H).
...
@@ -408,9 +408,9 @@ def ID_Coef(grt,ID_mode,hv_eV): # Mode = state (0=RCP,1=LCP,2=V,3=H);
...
@@ -408,9 +408,9 @@ def ID_Coef(grt,ID_mode,hv_eV): # Mode = state (0=RCP,1=LCP,2=V,3=H);
Previously: ID_Coef
Previously: ID_Coef
"""
"""
def
ListRange
(
grt
,
ID_
mod
e
,
IDdict
):
# extract the list of break pts for a given mode/grt
def
ListRange
(
grt
,
ID_
stat
e
,
IDdict
):
# extract the list of break pts for a given mode/grt
tmp_list
=
[]
tmp_list
=
[]
for
item
in
(
IDdict
[
grt
][
ID_
mod
e
]):
for
item
in
(
IDdict
[
grt
][
ID_
stat
e
]):
tmp_list
.
append
(
item
[
0
])
tmp_list
.
append
(
item
[
0
])
return
tmp_list
return
tmp_list
...
@@ -429,9 +429,9 @@ def ID_Coef(grt,ID_mode,hv_eV): # Mode = state (0=RCP,1=LCP,2=V,3=H);
...
@@ -429,9 +429,9 @@ def ID_Coef(grt,ID_mode,hv_eV): # Mode = state (0=RCP,1=LCP,2=V,3=H);
print
(
"
Unable to read dictionary
"
)
print
(
"
Unable to read dictionary
"
)
try
:
try
:
Lrange
=
ListRange
(
grt
,
ID_
mod
e
,
ID_function
)
Lrange
=
ListRange
(
grt
,
ID_
stat
e
,
ID_function
)
Erange
=
FindRange
(
hv_eV
,
Lrange
)
Erange
=
FindRange
(
hv_eV
,
Lrange
)
K
=
ID_function
[
grt
][
ID_
mod
e
][
Erange
][
1
]
K
=
ID_function
[
grt
][
ID_
stat
e
][
Erange
][
1
]
return
K
return
K
except
KeyError
:
except
KeyError
:
...
...
This diff is collapsed.
Click to expand it.
iexcode.egg-info/SOURCES.txt
+
1
−
1
View file @
704ab844
...
@@ -19,6 +19,7 @@ iexcode/instruments/Kappa.py
...
@@ -19,6 +19,7 @@ iexcode/instruments/Kappa.py
iexcode/instruments/Kappa_Euler.py
iexcode/instruments/Kappa_Euler.py
iexcode/instruments/Kappa_det.py
iexcode/instruments/Kappa_det.py
iexcode/instruments/Lakeshore_335.py
iexcode/instruments/Lakeshore_335.py
iexcode/instruments/MPA.py
iexcode/instruments/Motors.py
iexcode/instruments/Motors.py
iexcode/instruments/Scienta.py
iexcode/instruments/Scienta.py
iexcode/instruments/VLS_PGM.py
iexcode/instruments/VLS_PGM.py
...
@@ -36,7 +37,6 @@ iexcode/instruments/gate_valves.py
...
@@ -36,7 +37,6 @@ iexcode/instruments/gate_valves.py
iexcode/instruments/hxp_mirrors.py
iexcode/instruments/hxp_mirrors.py
iexcode/instruments/logfile.py
iexcode/instruments/logfile.py
iexcode/instruments/m3r.py
iexcode/instruments/m3r.py
iexcode/instruments/mpa.py
iexcode/instruments/remote_controlers.py
iexcode/instruments/remote_controlers.py
iexcode/instruments/resolution.py
iexcode/instruments/resolution.py
iexcode/instruments/s29_temp_cntl.py
iexcode/instruments/s29_temp_cntl.py
...
...
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