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
......@@ -265,7 +265,10 @@ class GridSearch(BaseSearchClass):
print(' {}={}'.format(k, v))
def set_out_file(self, extra_label=None):
dets = self.detectors.replace(',', '')
if self.detectors:
dets = self.detectors.replace(',', '')
dets = 'NA'
if extra_label:
self.out_file = '{}/{}_{}_{}_{}.txt'.format(
self.outdir, self.label, dets, type(self).__name__,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment