Skip to content

Commit

Permalink
create results output directory if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleniemeyer committed Jul 12, 2016
1 parent a1f1c0a commit 61cb678
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions PyTeCK/eval_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ def evaluate_model(model_name, spec_keys_file, dataset_file,
Dictionary with all information about model evaluation results.
"""
# Create results_path if it doesn't exist
if not os.path.exists(results_path):
os.makedirs(results_path)

# Dict to translate species names into those used by models
with open(spec_keys_file, 'r') as f:
Expand Down

0 comments on commit 61cb678

Please sign in to comment.