Skip to content

Commit

Permalink
adding comment
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandrothea committed Nov 18, 2024
1 parent a770931 commit 7f745e0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 9 additions & 1 deletion python/daqconf/session.py
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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:
Expand All @@ -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")
Expand Down
1 change: 1 addition & 0 deletions scripts/daqconf_inspector
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down

0 comments on commit 7f745e0

Please sign in to comment.