Skip to content

Fix keyerror in quality lookup#361

Merged
mfeurer merged 3 commits intodevelopfrom
fix_check_qualities
Oct 13, 2017
Merged

Fix keyerror in quality lookup#361
mfeurer merged 3 commits intodevelopfrom
fix_check_qualities

Conversation

@mfeurer
Copy link
Copy Markdown
Collaborator

@mfeurer mfeurer commented Oct 13, 2017

No description provided.

@mfeurer mfeurer requested a review from amueller October 13, 2017 11:19
Comment thread openml/datasets/dataset.py Outdated
for xmlquality in qualities:
name = xmlquality['oml:name']
if xmlquality['oml:value'] is None:
if 'oml:value' not in xmlquality:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now about

if xmlquality.get('oml:value', None) is None:
    value = float('NaN')

@codecov-io
Copy link
Copy Markdown

codecov-io commented Oct 13, 2017

Codecov Report

Merging #361 into develop will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #361   +/-   ##
========================================
  Coverage    89.69%   89.69%           
========================================
  Files           32       32           
  Lines         2543     2543           
========================================
  Hits          2281     2281           
  Misses         262      262
Impacted Files Coverage Δ
openml/datasets/dataset.py 79.67% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1fff169...1e42e7b. Read the comment docs.

Comment thread openml/datasets/dataset.py Outdated

if xmlquality.get('oml:value', None) is None:
value = float('NaN')
elif 'oml:value' not in xmlquality:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you don't need this line ;) that was kind of the point...

@mfeurer mfeurer merged commit 4152dfc into develop Oct 13, 2017
@mfeurer mfeurer deleted the fix_check_qualities branch October 13, 2017 12:22
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.

3 participants