Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ess-python-tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ESS Beam Physics
ess-python-tools
Commits
2bdb006a
Commit
2bdb006a
authored
8 years ago
by
Ryoichi Miyamoto
Browse files
Options
Downloads
Patches
Plain Diff
(1) ERROR_STAT/DYN_FILE command implemented. (2) The initial comment part updated.
parent
9d1e63d1
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
ess/lib_tw_elem.py
+54
-8
54 additions, 8 deletions
ess/lib_tw_elem.py
with
54 additions
and
8 deletions
ess/lib_tw_elem.py
+
54
−
8
View file @
2bdb006a
...
...
@@ -29,9 +29,23 @@
* Passive commands
ADJUST
FREQ
MARKER
* Error commands (active)
ERROR_BEAM_STAT
ERROR_BEAM_DYN
ERROR_QUAD_NCPL_STAT
ERROR_QUAD_CPL_STAT
ERROR_CAV_NCPL_STAT
ERROR_CAV_NCPL_DYN
ERROR_CAV_CPL_STAT
ERROR_CAV_CPL_DYN
ERROR_STAT_FILE
ERROR_DYN_FILE
* Other commands for just common
"
COMM
"
END
...
...
@@ -49,13 +63,6 @@
MIN_PHASE_VARIATION
START_ACHROMAT
ERROR_QUAD_NCPL_STAT
ERROR_QUAD_CPL_STAT
ERROR_CAV_NCPL_STAT
ERROR_CAV_NCPL_DYN
ERROR_CAV_CPL_STAT
ERROR_CAV_CPL_DYN
ADJUST
ADJUST_STEERER
ADJUST_STEERER_BX
ADJUST_STEERER_BY
...
...
@@ -77,8 +84,14 @@
* 2016.08.18
- Asymmetric aperture of DRIFT implemented.
* 2017.01.03
- ERROR_STAT/DYN_FILE implemented.
'''
#---- Initial
from
__future__
import
print_function
#---- Libs
...
...
@@ -1062,7 +1075,6 @@ class MARKER(COMM):
class
ADJUST
(
COMM
):
'''
- Uncommented for THIN_STEERING.
'''
def
__init__
(
self
,
name
,
typ
,
para
):
...
...
@@ -1339,4 +1351,38 @@ class ERROR_CAV_CPL_DYN(ERROR_CAV):
ERROR_CAV
.
__init__
(
self
,
name
,
typ
,
para
)
#--
class
ERROR_FILE
(
COMM
):
'''
'''
def
__init__
(
self
,
name
,
typ
,
para
):
COMM
.
__init__
(
self
,
name
,
typ
,
para
)
# TW instances
self
.
file_name
=
str
(
para
[
0
])
def
get_tw
(
self
):
if
self
.
name
!=
''
:
lin
=
self
.
name
+
'
:
'
+
self
.
typ
+
'
'
if
self
.
name
==
''
:
lin
=
self
.
typ
+
'
'
lin
+=
str
(
self
.
file_name
)
return
lin
class
ERROR_STAT_FILE
(
ERROR_FILE
):
'''
'''
def
__init__
(
self
,
name
,
typ
,
para
):
ERROR_FILE
.
__init__
(
self
,
name
,
typ
,
para
)
class
ERROR_DYN_FILE
(
ERROR_FILE
):
'''
'''
def
__init__
(
self
,
name
,
typ
,
para
):
ERROR_FILE
.
__init__
(
self
,
name
,
typ
,
para
)
#----
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