Skip to content

Commit 76335c2

Browse files
committed
Workflow parser: DDS asset files have .asset extension
1 parent 0cc0b9b commit 76335c2

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

DATA/common/setenv.sh

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,11 @@ has_matching_qc()
165165
has_pid_qc()
166166
{
167167
PIDDETECTORS=$(echo $1 | tr "-" "\n")
168-
for PIDDETECTOR in $PIDDETECTORS;
169-
do
170-
echo PIDDETECTOR=$PIDDETECTOR 1>&2
171-
if [[ $PIDDETECTOR == "TOF" ]]; then
172-
(! has_detectors_reco ITS TPC TOF || ! has_detector_matching ITSTPCTOF) && return 1
173-
fi
174-
! has_detector_qc $PIDDETECTOR && return 1
168+
for PIDDETECTOR in $PIDDETECTORS; do
169+
if [[ $PIDDETECTOR == "TOF" ]]; then
170+
(! has_detectors_reco ITS TPC TOF || ! has_detector_matching ITSTPCTOF) && return 1
171+
fi
172+
! has_detector_qc $PIDDETECTOR && return 1
175173
done
176174
return 0
177175
}

DATA/tools/parse

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ for line in f:
159159
print('Error running sed on JSON file')
160160
asset_name = 'dpl_json_' + wf[0] + '_' + str(i)
161161
command = 'sed -i ' + \
162-
'-e \'s,^\( *.exe.*sleep [0-9.]*;\).*\(|[^|]*./exe.\)$,\\1 cat ${DDS_LOCATION}/' + asset_name + ' \\2,\' ' + \
162+
'-e \'s,^\( *.exe.*sleep [0-9.]*;\).*\(|[^|]*./exe.\)$,\\1 cat ${DDS_LOCATION}/' + asset_name + '.asset \\2,\' ' + \
163163
'-e \'/^\( *.decltask name.*>$\)/a <assets><name>' + asset_name + '</name></assets>\' ' + \
164164
'-e \'/^\( *.topology name.*>$\)/a <asset name="' + asset_name + '" type="inline" visibility="global" value="\' ' + \
165165
'-e \'/^\( *.topology name.*>$\)/r ' + filename + '\' ' + \

0 commit comments

Comments
 (0)