Skip to content

Commit

Permalink
Writing json results needs to create a new files
Browse files Browse the repository at this point in the history
  • Loading branch information
ecmjohnson committed Aug 9, 2016
1 parent 9025b17 commit d131c12
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions dsdtools/evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ def import_json(self, filename):
'SDR',
'ISR',
'SIR',
'SAR',
'sample',
'subset'
'SAR'
]
new_cols = set(df.columns.tolist()).difference(set(base_cols))
cols = base_cols + list(new_cols)
Expand Down Expand Up @@ -197,7 +195,7 @@ def evaluate_track(
track.subset,
track.filename
)
with open(track_dir + '/evaluation.json', 'w') as f:
with open(track_dir + '/evaluation.json', 'w+') as f:
f.write(json_string)
except (ValueError, IOError):
pass
Expand Down

0 comments on commit d131c12

Please sign in to comment.