Skip to content

Commit 2c4de8d

Browse files
committed
Update DES.py
1 parent 69b943b commit 2c4de8d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/sorcha/DES.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ def runDESSimulation(args, sconfigs):
377377
)
378378
observations.reset_index(drop=True, inplace=True)
379379
verboselog("Number of rows AFTER applying SSP linking filter: " + str(len(observations.index)))
380-
if len(observations.index) > 0:
380+
if len(observations.index) > 0 and sconfigs.linkingfilter.ssp_number_tracklets >= 3:
381381
verboselog("Applying DES discovery filter...")
382382
verboselog(
383383
"Number of rows BEFORE applying DES Discovery filter: " + str(len(observations.index))
@@ -387,6 +387,10 @@ def runDESSimulation(args, sconfigs):
387387
verboselog(
388388
"Number of rows AFTER applying DES Discovery filter: " + str(len(observations.index))
389389
)
390+
else:
391+
verboselog(
392+
"Minimum number of tracklets is < 3, DES Discovery filter is not applied"
393+
)
390394

391395
# write output if chunk not empty
392396
if len(observations.index) > 0:

0 commit comments

Comments
 (0)