Skip to content
Snippets Groups Projects
Commit 14ecd45b authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Fix bug in setting the out file name

If detectors is not specified, det=None, then in the outfile simply use
'NA' to indicate this.
parent ae5207c2
No related branches found
No related tags found
No related merge requests found
......@@ -265,7 +265,10 @@ class GridSearch(BaseSearchClass):
print(' {}={}'.format(k, v))
def set_out_file(self, extra_label=None):
if self.detectors:
dets = self.detectors.replace(',', '')
else:
dets = 'NA'
if extra_label:
self.out_file = '{}/{}_{}_{}_{}.txt'.format(
self.outdir, self.label, dets, type(self).__name__,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment