Skip to content

Commit

Permalink
Merge a8460e4 into 96468d6
Browse files Browse the repository at this point in the history
  • Loading branch information
kowey committed May 19, 2015
2 parents 96468d6 + a8460e4 commit 141b67a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
15 changes: 15 additions & 0 deletions attelo/harness/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,21 @@ def test_evaluation(self):
return None

# pylint: disable=no-self-use
@property
def config_files(self):
"""Files needed to reproduce the configuration behind a
particular set of scores.
Will be copied into the provenance section of the report.
Some harnesses have parameter files that should be saved
in case there is any need to reproduce results much
futher into the future. Specifying them here gives you some
extra insurance in case you neglect to put them under version
control.
"""
return []

@property
def detailed_evaluations(self):
"""
Expand Down
2 changes: 2 additions & 0 deletions attelo/harness/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,8 @@ def _copy_version_files(hconf, test_data):
for vpath in glob.glob(fp.join(hconf.eval_dir,
'versions-*.txt')):
shutil.copy(vpath, provenance_dir)
for cpath in hconf.config_files:
shutil.copy(cpath, provenance_dir)


def _mk_report(hconf, dconf, slices, fold, test_data=False):
Expand Down

0 comments on commit 141b67a

Please sign in to comment.