GitLab will be upgraded on June 23rd evening. During the upgrade the service will be unavailable, sorry for the inconvenience.

Commit 2417efc6 authored by Emmanuel Papillon's avatar Emmanuel Papillon

manages marana accumulation in default scans

parent 337ddc4e
......@@ -4,21 +4,41 @@ from bliss.scanning.chain import ChainPreset
from bliss.scanning.scan import ScanPreset
def set_frelon_trigger():
config = get_config()
chaincfg = config.get("chain_tdxrd_trig")
DEFAULT_CHAIN.set_settings(chaincfg["chain_config"])
def set_frelon_gate():
def _get_tdxrd_chain():
config = get_config()
chaincfg = config.get("chain_tdxrd_gate")
DEFAULT_CHAIN.set_settings(chaincfg["chain_config"])
return chaincfg["chain_config"]
def set_tdxrd_chain():
DEFAULT_CHAIN.set_settings(_get_tdxrd_chain())
def set_frelon_soft():
def unset_tdxrd_chain():
DEFAULT_CHAIN.set_settings({})
def set_marana_accumulation(acc_max_expo_time=0.0005):
set_tdxrd_chain()
found = False
for dev in DEFAULT_CHAIN._settings:
if dev.name == "marana":
found = True
# -- for scans
DEFAULT_CHAIN._settings[dev]["acquisition_settings"] = {
"acq_mode": "ACCUMULATION",
"acq_trigger_mode": "INTERNAL_TRIGGER",
"acc_max_expo_time": acc_max_expo_time,
}
# -- for tomo
dev.acquisition.mode = "ACCUMULATION"
dev.accumulation.max_expo_time = acc_max_expo_time
if not found:
raise RuntimeError("No marana device in default chain !!")
def unset_marana_accumulation():
set_tdxrd_chain()
for dev in DEFAULT_CHAIN._settings:
if dev.name == "marana":
dev.acquisition.mode = "SINGLE"
class CountMuxPreset(ChainPreset):
def __init__(self, opmux, fsh):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment