Skip to content

Commit f4ea667

Browse files
committed
tidy-up
1 parent a3f24c2 commit f4ea667

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

BRB/run.py

+5-9
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,13 @@ def run_brb(configfile, stats, fcid):
8989

9090
else:
9191
# Push stats on-demand
92-
log.info(f"Pushing stats for flowcell: {fcid}")
9392
d = [d for d in glob.glob("{}/*/fastq.made".format(config.get('Paths', 'baseData'))) if fcid in d]
9493
dual_lane = len(d) == 2
9594
if len(d) == 0:
96-
log.error(f"No fastq.made files found for {fcid}")
95+
print(f"ERROR: No fastq.made files found for {fcid}")
9796
return # Exit BRB if no files found.
9897
elif len(d) > 2:
99-
log.error(f"How many lanes does {fcid} have?!")
98+
print(f"ERROR: How many lanes does {fcid} have?!")
10099
return # Exit BRB this error shouldn't happen at all.
101100

102101
config.set('Options','runID',d[0].split("/")[-2])
@@ -111,14 +110,11 @@ def run_brb(configfile, stats, fcid):
111110
if not dual_lane:
112111
logFile = Path(config['Paths']['logPath'], config.get('Options','runID') + '.log')
113112
else:
114-
logFile = Path(config['Paths']['logPath'], config.get('Options','runID')[:-1] + '_both' + '.log')
113+
logFile = Path(config['Paths']['logPath'], config.get('Options','runID')[:-1] + 'both' + '.log')
115114
print(f"Logging into: {logFile}")
116115
setLog(logFile)
117-
118-
if dual_lane:
119-
log.info("Same log-file is being used for both lanes. Hopefully this is not too confusing :$")
120-
121-
116+
log.info(f"Pushing stats for flowcell: {fcid}")
117+
122118
# Process each group's data, ignore cases where the project isn't in the lanes being processed
123119
process_data(config, ParkourDict)
124120

0 commit comments

Comments
 (0)