diff --git a/phoenix_bec/bec_ipython_client/startup/post_startup.py b/phoenix_bec/bec_ipython_client/startup/post_startup.py index f3332d7..8544937 100644 --- a/phoenix_bec/bec_ipython_client/startup/post_startup.py +++ b/phoenix_bec/bec_ipython_client/startup/post_startup.py @@ -37,27 +37,28 @@ from IPython.core.magic import register_line_magic import time as tt # pylint: disable=invalid-name, unused-import, import-error, undefined-variable, unused-variable, unused-argument, no-name-in-module -import sys +import sys # SETUP PROMPTS bec._ip.prompts.username = "PHOENIX" bec._ip.prompts.status = 1 + # make sure that edited modules are reloaded when changed print('post_startup.py : set autoreload of modules') bec._ip.run_line_magic("reload_ext","autoreload") -bec._ip.run_line_magic("autoreload", "2") +bec._ip.run_line_magic("autoreload", "2") print('autoreload loaded ') ########### # -# next lines are not ideal and likely need to be removed they are a temporary fix as we had trouble finding certain paths. +# next lines are not ideal and likely need to be removed they are a temporary fix as we had trouble finding certain paths. # -# we need to work in server_env, otherwise no server is found +# we need to work in server_env, otherwise no server is found # path to ophyd devices is only way to find default ophyd devices -# path to python packages not ideal but only way to add pyp5 and pandas packages +# path to python packages not ideal but only way to add pyp5 and pandas packages # ########## @@ -69,41 +70,42 @@ p_path='/data/test/x07mb-test-bec/bec_deployment/bec_server_venv/lib/python3.11/ print('add ',ophyd_devices_path) print('add ',p_path) -if ophyd_devices_path not in sys.path: - sys.path.insert(1, os.path.expandvars(ophyd_devices_path)) -#endif +if ophyd_devices_path not in sys.path: + sys.path.insert(1, os.path.expandvars(ophyd_devices_path)) +#endif -if p_path not in sys.path: - sys.path.insert(1, os.path.expandvars(p_path)) +if p_path not in sys.path: + sys.path.insert(1, os.path.expandvars(p_path)) #endif ############################################################################# # -#... register BL specific magic commands +#... register BL specific magic commands # ############################################################################## @register_line_magic def ph_reload(line): - ########################################################################## - # - # this reloads certain phoenix related script to the iphython shell. - # useful for debugging/development to be revised for production - # aim of this magic is to quickl reload BL related stuff for debugging - # Most likely there are better ways to do this (possibly bec.reload_user_script() - # but syntax not clear, error messages. Here we know what we do - # - # ####################################################################### - print('reload phoenix_bec.scripts.phoenix to iphyhton console') - print('to update version server restart server ') - global PH,phoenix - print('from phoenix_bec.scripts import phoenix as PH') - from phoenix_bec.scripts import phoenix as PH - print('phoenix = PH.PhoenixBL()') - phoenix = PH.PhoenixBL() - #ph_config=PH.PhoenixConfighelper() -#enddef + ########################################################################## + # + # this reloads certain phoenix related script to the iphython shell. + # useful for debugging/development to be revised for production + # aim of this magic is to quickl reload BL related stuff for debugging + # Most likely there are better ways to do this (possibly bec.reload_user_script() + # but syntax not clear, error messages. Here we know what we do + # + ######################################################################## + + print('reload phoenix_bec.scripts.phoenix to iphyhton console') + print('to update version server restart server ') + global PH,phoenix + print('from phoenix_bec.scripts import phoenix as PH') + from phoenix_bec.scripts import phoenix as PH + print('phoenix = PH.PhoenixBL()') + phoenix = PH.PhoenixBL() + #ph_config=PH.PhoenixConfighelper() +#enddef print('register magic') print('...... %ph_load_xmap') @@ -112,7 +114,7 @@ def ph_load_xmap(line): t0=tt.time() phoenix_server.add_xmap() print('elapsed time:', tt.time()-t0) -#enddef +#enddef print('...... %ph_load_falcon') @register_line_magic @@ -120,7 +122,7 @@ def ph_load_falcon(line): t0=tt.time() phoenix_server.add_falcon() print('elapsed time:', tt.time()-t0) -#enddef +#enddef print('...... %ph_load_config') @register_line_magic @@ -131,18 +133,17 @@ def ph_load_config(line): #enddef - ##@register_line_magic #def ph_post_startup(line): # print('import phoenix_bec.bec_ipython_client.startup.post_startup does not work caused loop ') # #import phoenix_bec.bec_ipython_client.startup.post_startup -# does not work seems to build a infinite stack... +# does not work seems to build a infinite stack... #################################################################################### # -# init phoenix.py from server version as +# init phoenix.py from server version as # .................. phoenix_server=PhoenixBL() -# and in ipython shell only as +# and in ipython shell only as # .............. phoenix = Ph.Pheonix(BL() # ##################################################################################### @@ -157,4 +158,4 @@ phoenix = PH.PhoenixBL() #from phoenix_bec.bec_ipython_client.plugins.phoenix import Phoenix -#from phoenix_bec.devices.falcon_phoenix_no_hdf5 import FalconHDF5Plugins \ No newline at end of file +#from phoenix_bec.devices.falcon_phoenix_no_hdf5 import FalconHDF5Plugins diff --git a/phoenix_bec/device_configs/phoenix_falcon.yaml b/phoenix_bec/device_configs/phoenix_falcon.yaml index e0c92d5..d59f886 100644 --- a/phoenix_bec/device_configs/phoenix_falcon.yaml +++ b/phoenix_bec/device_configs/phoenix_falcon.yaml @@ -7,7 +7,7 @@ falcon_nohdf5: - phoenix - falcon - no hdf5 - - phoenix_devices.yaml + - phoenix_devices.yaml onFailure: buffer enabled: true readoutPriority: async diff --git a/phoenix_bec/local_scripts/Development_helpers/Develop_phoenix.py b/phoenix_bec/local_scripts/Development_helpers/Develop_phoenix.py index 59a67ec..936b285 100644 --- a/phoenix_bec/local_scripts/Development_helpers/Develop_phoenix.py +++ b/phoenix_bec/local_scripts/Development_helpers/Develop_phoenix.py @@ -2,4 +2,4 @@ from phoenix_bec.scripts.phoenix import PhoenixBL phoenix=PhoenixBL() #phoenix.read_phoenix_config() -phoenix.show_phoenix_setup() \ No newline at end of file +phoenix.show_phoenix_setup() diff --git a/phoenix_bec/local_scripts/PhoenixTemplate.py b/phoenix_bec/local_scripts/PhoenixTemplate.py index d55c002..de232a8 100644 --- a/phoenix_bec/local_scripts/PhoenixTemplate.py +++ b/phoenix_bec/local_scripts/PhoenixTemplate.py @@ -1,72 +1,71 @@ -#from unittest import mock -import numpy as np -#import pandas -#import pytest -#from bec_lib import messages -#import device_server -#from ophyd importPhoenixTemplate.pyitioner import PVPositionerComparator -#from ophyd.status import DeviceStatus, SubscriptionStatus +#from unittest import mock +import numpy as np +#import pandas +#import pytest +#from bec_lib import messages +#import device_server +#from ophyd importPhoenixTemplate.pyitioner import PVPositionerComparator +#from ophyd.status import DeviceStatus, SubscriptionStatus -import time - -#import ophyd -import os -import sys -import importlib -import ophyd +import time +#import ophyd +import os +import sys +import importlib +import ophyd -#logger = bec_logger.logger - # load local configuration -#bec.config.load_demo_config() +#logger = bec_logger.logger + # load local configuration +#bec.config.load_demo_config() -# .. define base path for directory with scripts +# .. define base path for directory with scripts PhoenixBL=0 from ConfigPHOENIX.config.phoenix import PhoenixBL #from ConfigPHOENIX.devices.falcon_csaxs import FalconSetup # initialize general parameter -ph=PhoenixBL() +ph=PhoenixBL() -bec.config.update_session_with_file('./ConfigPHOENIX/device_config/phoenix_devices.yaml') +bec.config.update_session_with_file('./ConfigPHOENIX/device_config/phoenix_devices.yaml') time.sleep(1) -s1=scans.line_scan(dev.ScanX,0,0.002,steps=4,exp_time=1,relative=False,delay=2) +s1=scans.line_scan(dev.ScanX,0,0.002,steps=4,exp_time=1,relative=False,delay=2) -s2=scans.phoenix_line_scan(dev.ScanX,0,0.002,steps=4,exp_time=.01,relative=False,delay=2) +s2=scans.phoenix_line_scan(dev.ScanX,0,0.002,steps=4,exp_time=.01,relative=False,delay=2) -""" -print('---------------------------------') - -# scan will not diode -print(' SCAN DO NOT READ DIODE ') -dev.PH_curr_conf.readout_priority='baseline' # do not read detector -ti=tt.time_ns() -s1=scans.line_scan(dev.PH_ScanX_conf,0,0.002,steps=4,exp_time=.01,relative=False,delay=2) -tf=tt.time_ns() - -print('elapsed time',(tf-ti)/1e9) -# scan will read diode -print(' SCAN READ DIODE ')s is not installed on test system -ScanX_conf,0,0.002,steps=11,exp_time=.3,relative=False,delay=2) - -""" """ -next lines do not work as pandas is not installed on test system +print('---------------------------------') -res1 = s1.scan.to_pandas() -re1 = res1.to_numpy() -print('Scana') -print(res1) -print('') -print('Scan2 at pandas ') -print(res2) -print('Scan2 as numpy ') +# scan will not diode +print(' SCAN DO NOT READ DIODE ') +dev.PH_curr_conf.readout_priority='baseline' # do not read detector +ti=tt.time_ns() +s1=scans.line_scan(dev.PH_ScanX_conf,0,0.002,steps=4,exp_time=.01,relative=False,delay=2) +tf=tt.time_ns() + +print('elapsed time',(tf-ti)/1e9) +# scan will read diode +print(' SCAN READ DIODE ')s is not installed on test system +ScanX_conf,0,0.002,steps=11,exp_time=.3,relative=False,delay=2) + +""" +""" +next lines do not work as pandas is not installed on test system + +res1 = s1.scan.to_pandas() +re1 = res1.to_numpy() +print('Scana') +print(res1) +print('') +print('Scan2 at pandas ') print(res2) -""" \ No newline at end of file +print('Scan2 as numpy ') +print(res2) +""" diff --git a/phoenix_bec/local_scripts/TOBEDELETED/phoenix.py_old2 b/phoenix_bec/local_scripts/TOBEDELETED/phoenix.py_old2 new file mode 100644 index 0000000..5b10954 --- /dev/null +++ b/phoenix_bec/local_scripts/TOBEDELETED/phoenix.py_old2 @@ -0,0 +1,104 @@ +s#from unittest import mock +import numpy as np +#import pandas +#import pytest +#from bec_lib import messages +#import device_server +#from ophyd import Component as Cpt +from ophyd import Device, EpicsMotor, EpicsSignal, EpicsSignalRO +#from ophyd import FormattedComponent as FCpt +#from ophyd import Kind, PVPositioner, Signal +#from ophyd.flyers import FlyerInterface +#from ophyd.pv_positioner import PVPositionerComparator +#from ophyd.status import DeviceStatus, SubscriptionStatus + +from bec_lib.config_helper import ConfigHelper +from bec_lib.logger import bec_logger +logger = bec_logger.logger + +import time as tt + +#import ophyd +import os +import sys + +#logger = bec_logger.logger +# load simulation +#bec.config.load_demo_config() + +# .. define base path for directory with scripts + + +class PhoenixBL(): + """ + + General class for PHOENIX beamline from phoenix_bec/phoenic_bec/scripts + + """ + + def __init__(self): + + + """ + init PhoenixBL() in phoenix_bec/scripts + + """ + + + import os + + print('..... init PhoenixBL from phoenix_bec/scripts/phoenix.py') + + #from ophyd import Device, EpicsMotor, EpicsSignal, EpicsSignalRO + #from ophyd import Component as Cpt + #self.ScanX = EpicsMotor(name='ScanX',prefix='X07MB-ES-MA1:ScanX') + #self.ScanY = EpicsMotor(name='ScanY',prefix='X07MB-ES-MA1:ScanY') + #self.DIODE = EpicsSignal(name='SI',read_pv='X07MB-OP2-SAI_07:MEAN') + #self.SIG = Cpt(EpicsSignal,name='we',read_pv="X07MB-OP2-SAI_07:MEAN") + #self.SMPL = EpicsSignal(name='SMPL',read_pv='X07MB-OP2:SMPL') + #self.CYCLES = EpicsSignal(name='SMPL',read_pv='X07MB-OP2:TOTAL-CYCLES',write_pv='X07MB-OP2:TOTAL-CYCLES') + + # load local configuration + + + + self.path_scripts_local = '/data/test/x07mb-test-bec/bec_deployment/phoenix_bec/phoenix_bec/local_scripts/' + self.path_config_local = self.path_scripts_local + 'TEST_ConfigPhoenix/' # base dir for local configurations + self.path_devices_local = self.path_config_local + 'Local_device_config/' # local yamal file + self.file_devices_file_local = self.path_devices_local + 'phoenix_devices.yaml' + + + self.path_phoenix_bec ='/data/test/x07mb-test-bec/bec_deployment/phoenix_bec/' + self.path_devices = self.path_phoenix_bec + 'phoenix_bec/device_configs/' # local yamal file + self.file_devices_file = self.path_phoenix_bec + 'phoenix_bec/device_configs/phoenix_devices.yaml' # local yamal file + + def read_local_phoenix_config(self): + print('read file ') + print(self.file_phoenix_devices_file) + bec.config.update_session_with_file(self.file_devices_file_local) + + def add_phoenix_config(self): + print('add_phoenix_config ') + print('self.file_devices_file') + bec.config.update_session_with_file(self.file_devices_file) + + def add_xmap(self): + print('add xmap ') + print(self.path_devices+'phoenix_xmap.yaml') + bec.config.update_session_with_file(self.path_devices+'phoenix_xmap.yaml',timeout=50) + + def add_falcon(self): + print('add_xmap') + print(self.path_devices+'/phoenix_falcon.yaml') + bec.config.wait_for_config_reply() + bec.config.update_session_with_file(self.path_devices+'/phoenix_falcon.yaml') + + def show_phoenix_setup(self): + print(self.path_phoenix_bec) + os.system('cat '+self.path_phoenix_bec+'phoenix_bec/scripts/Current_setup.txt') + + + + + + diff --git a/phoenix_bec/local_scripts/TOBEDELETED/phoenix.py_old_wrongTAB b/phoenix_bec/local_scripts/TOBEDELETED/phoenix.py_old_wrongTAB new file mode 100644 index 0000000..61f7e6c --- /dev/null +++ b/phoenix_bec/local_scripts/TOBEDELETED/phoenix.py_old_wrongTAB @@ -0,0 +1,104 @@ +#from unittest import mock +import numpy as np +#import pandas +#import pytest +#from bec_lib import messages +#import device_server +#from ophyd import Component as Cpt +from ophyd import Device, EpicsMotor, EpicsSignal, EpicsSignalRO +#from ophyd import FormattedComponent as FCpt +#from ophyd import Kind, PVPositioner, Signal +#from ophyd.flyers import FlyerInterface +#from ophyd.pv_positioner import PVPositionerComparator +#from ophyd.status import DeviceStatus, SubscriptionStatus + +from bec_lib.config_helper import ConfigHelper +from bec_lib.logger import bec_logger +logger = bec_logger.logger + +import time as tt + +#import ophyd +import os +import sys + +#logger = bec_logger.logger +# load simulation +#bec.config.load_demo_config() + +# .. define base path for directory with scripts + + +class PhoenixBL(): + """ + + General class for PHOENIX beamline from phoenix_bec/phoenic_bec/scripts + + """ + + def __init__(self): + + + """ + init PhoenixBL() in phoenix_bec/scripts + + """ + + + import os + + print('..... init PhoenixBL from phoenix_bec/scripts/phoenix.py') + + #from ophyd import Device, EpicsMotor, EpicsSignal, EpicsSignalRO + #from ophyd import Component as Cpt + #self.ScanX = EpicsMotor(name='ScanX',prefix='X07MB-ES-MA1:ScanX') + #self.ScanY = EpicsMotor(name='ScanY',prefix='X07MB-ES-MA1:ScanY') + #self.DIODE = EpicsSignal(name='SI',read_pv='X07MB-OP2-SAI_07:MEAN') + #self.SIG = Cpt(EpicsSignal,name='we',read_pv="X07MB-OP2-SAI_07:MEAN") + #self.SMPL = EpicsSignal(name='SMPL',read_pv='X07MB-OP2:SMPL') + #self.CYCLES = EpicsSignal(name='SMPL',read_pv='X07MB-OP2:TOTAL-CYCLES',write_pv='X07MB-OP2:TOTAL-CYCLES') + + # load local configuration + + + + self.path_scripts_local = '/data/test/x07mb-test-bec/bec_deployment/phoenix_bec/phoenix_bec/local_scripts/' + self.path_config_local = self.path_scripts_local + 'TEST_ConfigPhoenix/' # base dir for local configurations + self.path_devices_local = self.path_config_local + 'Local_device_config/' # local yamal file + self.file_devices_file_local = self.path_devices_local + 'phoenix_devices.yaml' + + + self.path_phoenix_bec ='/data/test/x07mb-test-bec/bec_deployment/phoenix_bec/' + self.path_devices = self.path_phoenix_bec + 'phoenix_bec/device_configs/' # local yamal file + self.file_devices_file = self.path_phoenix_bec + 'phoenix_bec/device_configs/phoenix_devices.yaml' # local yamal file + + def read_local_phoenix_config(self): + print('read file ') + print(self.file_phoenix_devices_file) + bec.config.update_session_with_file(self.file_devices_file_local) + + def add_phoenix_config(self): + print('add_phoenix_config ') + print('self.file_devices_file') + bec.config.update_session_with_file(self.file_devices_file) + + def add_xmap(self): + print('add xmap ') + print(self.path_devices+'phoenix_xmap.yaml') + bec.config.update_session_with_file(self.path_devices+'phoenix_xmap.yaml',timeout=50) + + def add_falcon(self): + print('add_xmap') + print(self.path_devices+'/phoenix_falcon.yaml') + bec.config.wait_for_config_reply() + bec.config.update_session_with_file(self.path_devices+'/phoenix_falcon.yaml') + + def show_phoenix_setup(self): + print(self.path_phoenix_bec) + os.system('cat '+self.path_phoenix_bec+'phoenix_bec/scripts/Current_setup.txt') + + + + + + diff --git a/phoenix_bec/scripts/__init__.py b/phoenix_bec/scripts/__init__.py index e69de29..991aa1a 100644 --- a/phoenix_bec/scripts/__init__.py +++ b/phoenix_bec/scripts/__init__.py @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/phoenix_bec/scripts/phoenix.py b/phoenix_bec/scripts/phoenix.py index b91ec47..ac9e223 100644 --- a/phoenix_bec/scripts/phoenix.py +++ b/phoenix_bec/scripts/phoenix.py @@ -20,7 +20,7 @@ import time as tt #import ophyd import os -import sys +import sys #logger = bec_logger.logger # load simulation @@ -30,73 +30,72 @@ import sys class PhoenixBL(): - """ + """ - General class for PHOENIX beamline from phoenix_bec/phoenic_bec/scripts + General class for PHOENIX beamline from phoenix_bec/phoenic_bec/scripts - """ + """ - - def __init__(self): + def __init__(self): - """ - init PhoenixBL() in phoenix_bec/scripts + """ + init PhoenixBL() in phoenix_bec/scripts - """ + """ - import os + import os - print('..... init PhoenixBL from phoenix_bec/scripts/phoenix.py') + print('..... init PhoenixBL from phoenix_bec/scripts/phoenix.py') - #from ophyd import Device, EpicsMotor, EpicsSignal, EpicsSignalRO - #from ophyd import Component as Cpt - #self.ScanX = EpicsMotor(name='ScanX',prefix='X07MB-ES-MA1:ScanX') - #self.ScanY = EpicsMotor(name='ScanY',prefix='X07MB-ES-MA1:ScanY') - #self.DIODE = EpicsSignal(name='SI',read_pv='X07MB-OP2-SAI_07:MEAN') - #self.SIG = Cpt(EpicsSignal,name='we',read_pv="X07MB-OP2-SAI_07:MEAN") - #self.SMPL = EpicsSignal(name='SMPL',read_pv='X07MB-OP2:SMPL') - #self.CYCLES = EpicsSignal(name='SMPL',read_pv='X07MB-OP2:TOTAL-CYCLES',write_pv='X07MB-OP2:TOTAL-CYCLES') + #from ophyd import Device, EpicsMotor, EpicsSignal, EpicsSignalRO + #from ophyd import Component as Cpt + #self.ScanX = EpicsMotor(name='ScanX',prefix='X07MB-ES-MA1:ScanX') + #self.ScanY = EpicsMotor(name='ScanY',prefix='X07MB-ES-MA1:ScanY') + #self.DIODE = EpicsSignal(name='SI',read_pv='X07MB-OP2-SAI_07:MEAN') + #self.SIG = Cpt(EpicsSignal,name='we',read_pv="X07MB-OP2-SAI_07:MEAN") + #self.SMPL = EpicsSignal(name='SMPL',read_pv='X07MB-OP2:SMPL') + #self.CYCLES = EpicsSignal(name='SMPL',read_pv='X07MB-OP2:TOTAL-CYCLES',write_pv='X07MB-OP2:TOTAL-CYCLES') - # load local configuration + # load local configuration - - - self.path_scripts_local = '/data/test/x07mb-test-bec/bec_deployment/phoenix_bec/phoenix_bec/local_scripts/' - self.path_config_local = self.path_scripts_local + 'TEST_ConfigPhoenix/' # base dir for local configurations - self.path_devices_local = self.path_config_local + 'Local_device_config/' # local yamal file - self.file_devices_file_local = self.path_devices_local + 'phoenix_devices.yaml' + + + self.path_scripts_local = '/data/test/x07mb-test-bec/bec_deployment/phoenix_bec/phoenix_bec/local_scripts/' + self.path_config_local = self.path_scripts_local + 'TEST_ConfigPhoenix/' # base dir for local configurations + self.path_devices_local = self.path_config_local + 'Local_device_config/' # local yamal file + self.file_devices_file_local = self.path_devices_local + 'phoenix_devices.yaml' - self.path_phoenix_bec ='/data/test/x07mb-test-bec/bec_deployment/phoenix_bec/' - self.path_devices = self.path_phoenix_bec + 'phoenix_bec/device_configs/' # local yamal file - self.file_devices_file = self.path_phoenix_bec + 'phoenix_bec/device_configs/phoenix_devices.yaml' # local yamal file + self.path_phoenix_bec ='/data/test/x07mb-test-bec/bec_deployment/phoenix_bec/' + self.path_devices = self.path_phoenix_bec + 'phoenix_bec/device_configs/' # local yamal file + self.file_devices_file = self.path_phoenix_bec + 'phoenix_bec/device_configs/phoenix_devices.yaml' # local yamal file - def read_local_phoenix_config(self): - print('read file ') - print(self.file_phoenix_devices_file) - bec.config.update_session_with_file(self.file_devices_file_local) - - def add_phoenix_config(self): - print('add_phoenix_config ') - print('self.file_devices_file') - bec.config.update_session_with_file(self.file_devices_file) + def read_local_phoenix_config(self): + print('read file ') + print(self.file_phoenix_devices_file) + bec.config.update_session_with_file(self.file_devices_file_local) + + def add_phoenix_config(self): + print('add_phoenix_config ') + print('self.file_devices_file') + bec.config.update_session_with_file(self.file_devices_file) - def add_xmap(self): - print('add xmap ') - print(self.path_devices+'phoenix_xmap.yaml') - bec.config.update_session_with_file(self.path_devices+'phoenix_xmap.yaml',timeout=50) + def add_xmap(self): + print('add xmap ') + print(self.path_devices+'phoenix_xmap.yaml') + bec.config.update_session_with_file(self.path_devices+'phoenix_xmap.yaml',timeout=50) - def add_falcon(self): - print('add_xmap') - print(self.path_devices+'/phoenix_falcon.yaml') - bec.config.wait_for_config_reply() - bec.config.update_session_with_file(self.path_devices+'/phoenix_falcon.yaml') + def add_falcon(self): + print('add_xmap') + print(self.path_devices+'/phoenix_falcon.yaml') + bec.config.wait_for_config_reply() + bec.config.update_session_with_file(self.path_devices+'/phoenix_falcon.yaml') - def show_phoenix_setup(self): - print(self.path_phoenix_bec) - os.system('cat '+self.path_phoenix_bec+'phoenix_bec/scripts/Current_setup.txt') + def show_phoenix_setup(self): + print(self.path_phoenix_bec) + os.system('cat '+self.path_phoenix_bec+'phoenix_bec/scripts/Current_setup.txt')