Skip to content

Refactor scoring structure #62 #63 #64 - #77

Merged
steven-esser merged 4 commits into
developfrom
62-pass-only-score-during-delta-creation
Feb 22, 2018
Merged

Refactor scoring structure #62 #63 #64#77
steven-esser merged 4 commits into
developfrom
62-pass-only-score-during-delta-creation

Conversation

@johnmhoran

Copy link
Copy Markdown
Member

Handles issues #62, #63 and #64.

  * Replace 'Delta.category' with 'Delta.factors' and 'Delta.score',
    modify scoring scheme, pass 'score' during 'Delta' creation.
  * Replace 'Delta._license_diff()' with 'DeltaCode.license_diff()'.
  * Replace 'Delta.determine_score()' with assignment/updating of
    'Delta.score' in 'DeltaCode.determine_delta()',
    'DeltaCode.update_deltas()' and 'DeltaCode.license_diff()'.
  * Refactor 'Delta.to_dict()'.
  * Remove 'DeltaCode.get_stats()'.
  * Refactor 'write_csv()'.
  * Update docstrings.
  * Refactor failing tests, remove redundant tests, remove now-unused
    test files.

Signed-off-by: John M. Horan <johnmhoran@gmail.com>
  * Also fixed failing tests, deleted one duplicative test.

Signed-off-by: John M. Horan <johnmhoran@gmail.com>
Signed-off-by: John M. Horan <johnmhoran@gmail.com>
Signed-off-by: Steven Esser <sesser@nexb.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants