Script execution
This commit is contained in:
@@ -92,8 +92,9 @@ COUNT_TIME_PREFERENCE = "count_time"
|
||||
GEOMETRY_PREFERENCE = "geometry"
|
||||
ROI_PREFERENCE = "roi"
|
||||
BG_ROI_PREFERENCE = "bg_roi"
|
||||
USER_PATH_PREFERENCE = "user_path"
|
||||
USER_NAME_PREFERENCE = "user_name"
|
||||
USER_EXP_PREFERENCE = "user_exp"
|
||||
DATA_ROOT_PREFERENCE = "data_root"
|
||||
|
||||
def get_count_time():
|
||||
"""
|
||||
@@ -176,17 +177,18 @@ def is_geometry_set():
|
||||
return get_device("wavelength") is not None
|
||||
|
||||
|
||||
def set_user_env(path, experiment, images_path=None):
|
||||
def set_user_env(user, exp, data_root="/X04SA/data/x04sa/ES3/expdata"):
|
||||
"""
|
||||
Sets user folder
|
||||
Sets user folders
|
||||
"""
|
||||
set_setting(USER_PATH_PREFERENCE, path)
|
||||
set_setting(USER_EXP_PREFERENCE, experiment)
|
||||
set_data_path(path + "/" +experiment)
|
||||
pixel.set_path((path + "/image") if images_path is None else images_path, experiment)
|
||||
set_setting(USER_NAME_PREFERENCE, user)
|
||||
set_setting(USER_EXP_PREFERENCE, exp)
|
||||
set_setting(DATA_ROOT_PREFERENCE, path)
|
||||
set_data_path(path + "/" +user + "/" +experiment)
|
||||
pixel.set_path(path, user + "/" +experiment+ "/images")
|
||||
|
||||
def get_user_env():
|
||||
return (get_setting(USER_PATH_PREFERENCE), get_setting(USER_EXP_PREFERENCE))
|
||||
return (get_setting(USER_NAME_PREFERENCE), get_setting(USER_EXP_PREFERENCE), get_setting(DATA_ROOT_PREFERENCE))
|
||||
|
||||
|
||||
def load_user_env():
|
||||
|
||||
Reference in New Issue
Block a user