Skip to content

Commit dc90f84

Browse files
committed
use python convenient idiom
1 parent f2c9bea commit dc90f84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

BRB/run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def run_brb(configfile, stats):
5454
setLog(logFile)
5555

5656
# Push stats on-demand
57-
if not stats is None:
57+
if stats is not None:
5858
# stats: is the FCID specified by using CLI argument
5959
d = [d for d in glob.glob("{}/*/fastq.made".format(config.get('Paths', 'baseData'))) if stats in d]
6060
assert len(d) == 1
@@ -87,5 +87,5 @@ def run_brb(configfile, stats):
8787
BRB.findFinishedFlowCells.markFinished(config)
8888
log.info('=== finished flowcell ===')
8989

90-
if not stats is None:
90+
if stats is not None:
9191
break # exit the main loop, don't do anything else.

0 commit comments

Comments
 (0)