From 7f745e00e4a85f759c13d59e74b9fceb1cdf4c2f Mon Sep 17 00:00:00 2001 From: Alessandro Thea Date: Sun, 3 Nov 2024 15:13:45 +0100 Subject: [PATCH] adding comment --- python/daqconf/session.py | 10 +++++++++- scripts/daqconf_inspector | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/python/daqconf/session.py b/python/daqconf/session.py index 7debc338..522b34e1 100644 --- a/python/daqconf/session.py +++ b/python/daqconf/session.py @@ -1,6 +1,9 @@ import conffwk def get_segment_apps(segment): + """ + Gather the list of applications in the segment and its sub-segments + """ apps = [] for ss in segment.segments: @@ -15,7 +18,9 @@ def get_segment_apps(segment): def get_session_apps(confdb, session_name=""): - """Get the apps defined in the given session""" + """ + Gather the apps defined used in a session. + """ if session_name == "": session_dals = confdb.get_dals(class_name="Session") if len(session_dals) == 0: @@ -35,6 +40,9 @@ def get_session_apps(confdb, session_name=""): def get_apps_in_any_session(confdb): + """ + Gather the applications used in any session present in the database + """ output = {} session_dals = confdb.get_dals(class_name="Session") diff --git a/scripts/daqconf_inspector b/scripts/daqconf_inspector index d8dfd57a..45591e2a 100755 --- a/scripts/daqconf_inspector +++ b/scripts/daqconf_inspector @@ -569,6 +569,7 @@ def show_d2d_connections(obj): sndr_grp = send_grps[0] sndrs = [ r for r in sndr_grp.contains if 'DetDataSender' in r.oksTypes()] if len(sndr_grp.contains) != len(sndrs): + print(sndr_grp.contains) raise RuntimeError(f"Not all sender in {conn.id} are DetDataSenders") strm_id_list = []