Skip to content
Snippets Groups Projects
Commit 2bdb006a authored by Ryoichi Miyamoto's avatar Ryoichi Miyamoto
Browse files

(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
...@@ -29,9 +29,23 @@ ...@@ -29,9 +29,23 @@
* Passive commands * Passive commands
ADJUST
FREQ FREQ
MARKER 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" * Other commands for just common "COMM"
END END
...@@ -49,13 +63,6 @@ ...@@ -49,13 +63,6 @@
MIN_PHASE_VARIATION MIN_PHASE_VARIATION
START_ACHROMAT 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
ADJUST_STEERER_BX ADJUST_STEERER_BX
ADJUST_STEERER_BY ADJUST_STEERER_BY
...@@ -77,8 +84,14 @@ ...@@ -77,8 +84,14 @@
* 2016.08.18 * 2016.08.18
- Asymmetric aperture of DRIFT implemented. - Asymmetric aperture of DRIFT implemented.
* 2017.01.03
- ERROR_STAT/DYN_FILE implemented.
''' '''
#---- Initial
from __future__ import print_function from __future__ import print_function
#---- Libs #---- Libs
...@@ -1062,7 +1075,6 @@ class MARKER(COMM): ...@@ -1062,7 +1075,6 @@ class MARKER(COMM):
class ADJUST(COMM): class ADJUST(COMM):
''' '''
- Uncommented for THIN_STEERING.
''' '''
def __init__(self,name,typ,para): def __init__(self,name,typ,para):
...@@ -1339,4 +1351,38 @@ class ERROR_CAV_CPL_DYN(ERROR_CAV): ...@@ -1339,4 +1351,38 @@ class ERROR_CAV_CPL_DYN(ERROR_CAV):
ERROR_CAV.__init__(self,name,typ,para) 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)
#---- #----
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment