adjust to git repo structure

This commit is contained in:
2020-05-27 17:26:59 +02:00
committed by NichtJens
parent b809c839b8
commit 69e521ca67
2 changed files with 27 additions and 27 deletions

View File

@ -12,7 +12,7 @@ from adhoc import *
#fn_cfg = "/sf/alvra/config/exp/current_experiment.json"
fn_cfg = "./slickits/alvra/config/config.json"
fn_cfg = "./alvra/config/config.json"
cfg = Config(fn_cfg)
elog = Elog(cfg.elog_url, cfg.screenshot_directory, user=cfg.user, password="supercorrect") #TODO: remove fake password
@ -20,7 +20,7 @@ screenshot = Screenshot(cfg.screenshot_directory)
#fn_channels = "/sf/alvra/config/com/channel_lists/default_channel_list"
fn_channels = "./slickits/alvra/config/channel_list"
fn_channels = "./alvra/config/channel_list"
channels = Channels(fn_channels)
@ -50,33 +50,15 @@ bsdaqPV = PVAcquisition(cfg.instrument, cfg.pgroup, default_channels=channels)
#TODO: just some generic examples:
from slic.devices.device import Device
shut_und = Device(
"SARFE10-OPSH044",
description="Photon shutter after Undulator"
)
pbps_und = Device(
"SARFE10-PBPS053",
z_undulator=44,
description="Intensity position monitor after Undulator (PBPS)"
)
print(shut_und)
print(pbps_und)
for k, v in sorted(dict(globals()).items()):
if k.startswith("__"):
continue
print("=" * 50)
print(k + ":")
print("-" * (len(k) + 1))
print(v)
#for k, v in sorted(dict(globals()).items()):
# if k.startswith("__"):
# continue
# print("=" * 50)
# print(k + ":")
# print("-" * (len(k) + 1))
# print(v)