Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fixes empty listing bug#405

Merged
mfeurer merged 1 commit intodevelopopenml/openml-python:developfrom
empty_listing_bugopenml/openml-python:empty_listing_bugCopy head branch name to clipboard
Feb 22, 2018
Merged

fixes empty listing bug#405
mfeurer merged 1 commit intodevelopopenml/openml-python:developfrom
empty_listing_bugopenml/openml-python:empty_listing_bugCopy head branch name to clipboard

Conversation

@janvanrijn
Copy link
Member

Ensures that listing fn consistently returns a dict

@janvanrijn janvanrijn requested a review from mfeurer February 21, 2018 15:58
@codecov-io
Copy link

codecov-io commented Feb 21, 2018

Codecov Report

Merging #405 into develop will increase coverage by 0.07%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #405      +/-   ##
===========================================
+ Coverage    89.02%   89.09%   +0.07%     
===========================================
  Files           32       32              
  Lines         2660     2668       +8     
===========================================
+ Hits          2368     2377       +9     
+ Misses         292      291       -1
Impacted Files Coverage 螖
openml/study/functions.py 92.5% <酶> (酶) 猬嗭笍
openml/_api_calls.py 88.88% <100%> (酶) 猬嗭笍
openml/setups/functions.py 95.31% <100%> (+0.95%) 猬嗭笍
openml/evaluations/functions.py 92.68% <100%> (+0.79%) 猬嗭笍
openml/flows/functions.py 92.47% <100%> (酶) 猬嗭笍
openml/datasets/functions.py 90.18% <100%> (酶) 猬嗭笍
openml/tasks/functions.py 86.16% <100%> (酶) 猬嗭笍
openml/runs/functions.py 86.19% <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 1819b63...4d8f25b. Read the comment docs.

Copy link
Collaborator

@mfeurer mfeurer left a comment

Choose a reason for hiding this comment

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

Looks great, only a minor remark.

if len(datasets) > 0:
raise ValueError('UnitTest Outdated, tag was already used (please remove)')

self.assertIsInstance(datasets, dict)
Copy link
Collaborator

Choose a reason for hiding this comment

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

You should also check that the dictionary is actually empty.

if len(evaluations) > 0:
raise ValueError('UnitTest Outdated, got somehow results')

self.assertIsInstance(evaluations, dict) No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here.

if len(runs) > 0:
raise ValueError('UnitTest Outdated, got somehow results')

self.assertIsInstance(runs, dict)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here.

if len(setups) > 0:
raise ValueError('UnitTest Outdated, got somehow results')

self.assertIsInstance(setups, dict)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here.

if len(tasks) > 0:
raise ValueError('UnitTest Outdated, got somehow results (tag is used, please adapt)')

self.assertIsInstance(tasks, dict)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here.

@mfeurer mfeurer merged commit a1e9368 into develop Feb 22, 2018
@mfeurer mfeurer deleted the empty_listing_bug branch February 22, 2018 17:01
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.