From e11eedaa02647f2a6c1b27c5b540ea644f8590af Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Romain=20BRON=C3=88S?= <romain.brones@synchrotron-soleil.fr>
Date: Wed, 7 Aug 2024 09:17:49 +0200
Subject: [PATCH] (fix) Add reset/start comlbp and combpm on align operation

* This helps to reduce the number of manual steps to take for bringing up the com
---
 FofbTool/Operation.py | 5 ++++-
 FofbTool/__init__.py  | 2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/FofbTool/Operation.py b/FofbTool/Operation.py
index 3208814..7ee96f7 100644
--- a/FofbTool/Operation.py
+++ b/FofbTool/Operation.py
@@ -52,7 +52,10 @@ def align_ccn(node_tangopath, comlbpif=0):
     logger.debug("Reset offset on comlbp")
     prx["comlbp{}_seqoffset".format(comlbpif)]=0
 
-    # TODO reset and start comlbp and combpm
+    stop_comlbp(node_tangopath)
+    stop_combpm(node_tangopath)
+    start_comlbp(node_tangopath)
+    start_combpm(node_tangopath)
 
     # Loop until two consecutives identical measures
     N=[7,3]  # random start
diff --git a/FofbTool/__init__.py b/FofbTool/__init__.py
index 48a75d5..13ceb82 100644
--- a/FofbTool/__init__.py
+++ b/FofbTool/__init__.py
@@ -14,4 +14,4 @@ This package is cut in several modules:
 For basic usage, see doc of FofbTool.Utils
 
 """
-__version__ = "3.0"
+__version__ = "3.1"
-- 
GitLab