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
95226a1f
Commit
95226a1f
authored
2 years ago
by
jmcchesn
Browse files
Options
Downloads
Patches
Plain Diff
debugging
parent
20262cb5
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
iexcode/__init__.py
+0
-1
0 additions, 1 deletion
iexcode/__init__.py
iexcode/instruments/AD_utilities.py
+3
-3
3 additions, 3 deletions
iexcode/instruments/AD_utilities.py
iexcode/instruments/electron_analyzer.py
+17
-0
17 additions, 0 deletions
iexcode/instruments/electron_analyzer.py
with
20 additions
and
4 deletions
iexcode/__init__.py
+
0
−
1
View file @
95226a1f
This diff is collapsed.
Click to expand it.
iexcode/instruments/AD_utilities.py
+
3
−
3
View file @
95226a1f
...
@@ -31,7 +31,7 @@ def AD_exposure_time(ADplugin,exp_time,**kwargs):
...
@@ -31,7 +31,7 @@ def AD_exposure_time(ADplugin,exp_time,**kwargs):
caput
(
kwargs
[
"
P
"
]
+
kwargs
[
"
R
"
]
+
"
AcquireTime
"
,
exp_time
+
.
01
)
caput
(
kwargs
[
"
P
"
]
+
kwargs
[
"
R
"
]
+
"
AcquireTime
"
,
exp_time
+
.
01
)
def
AD_
CurrentDirectory
(
ADplugin
):
def
AD_
filepath
(
ADplugin
):
"""
"""
returns the current directory for area detector SavePlugin
returns the current directory for area detector SavePlugin
handles both Winodws and linux IOCs
handles both Winodws and linux IOCs
...
@@ -50,8 +50,8 @@ def AD_CurrentDirectory(ADplugin):
...
@@ -50,8 +50,8 @@ def AD_CurrentDirectory(ADplugin):
else
:
else
:
Dir
=
SubDir
Dir
=
SubDir
SubDir
=
[]
SubDir
=
[]
F
ile
P
ath
=
os
.
path
.
join
(
Dir
,
*
SubDir
,
''
)
f
ile
p
ath
=
os
.
path
.
join
(
Dir
,
*
SubDir
,
''
)
return
F
ile
P
ath
return
f
ile
p
ath
def
AD_prefix
(
ADplugin
):
def
AD_prefix
(
ADplugin
):
"""
"""
...
...
This diff is collapsed.
Click to expand it.
iexcode/instruments/electron_analyzer.py
+
17
−
0
View file @
95226a1f
...
@@ -15,6 +15,7 @@ from scipy.interpolate import interp1d
...
@@ -15,6 +15,7 @@ from scipy.interpolate import interp1d
from
epics
import
caput
,
caget
from
epics
import
caput
,
caget
from
iexcode.instruments.IEX_BL_config
import
*
from
iexcode.instruments.IEX_BL_config
import
*
from
iexcode.instruments.AD_utilities
import
AD_filepath
,
AD_prefix
from
iexcode.instruments.scanRecord
import
*
from
iexcode.instruments.scanRecord
import
*
from
iexcode.instruments.conversions_constants
import
*
from
iexcode.instruments.conversions_constants
import
*
from
iexcode.instruments.xrays
import
energy
,
scanXAS
,
BL_energy_tables
from
iexcode.instruments.xrays
import
energy
,
scanXAS
,
BL_energy_tables
...
@@ -145,6 +146,22 @@ def folders_EA(userPath,filePrefix="EA",**kwargs):
...
@@ -145,6 +146,22 @@ def folders_EA(userPath,filePrefix="EA",**kwargs):
df
=
'
h5
'
df
=
'
h5
'
fpath
=
join
(
userPath
,
df
)
fpath
=
join
(
userPath
,
df
)
def
EA_filepath
():
"""
returns the filepath in EA._savePlugin
"""
filepath
=
AD_filepath
(
EA
.
_savePlugin
)
print
(
'
filepath =
"'
+
filepath
+
'"'
)
return
filepath
def
EA_prefix
():
"""
returns the filepath in EA._savePlugin
"""
prefix
=
AD_prefix
(
EA
.
_savePlugin
)
+
"
_
"
print
(
'
prefix =
"'
+
prefix
+
'"'
)
return
prefix
def
EA_log_dictionary
():
def
EA_log_dictionary
():
"""
"""
dictionary for writing spectra to logfile
dictionary for writing spectra to logfile
...
...
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