Skip to content

util.get_unique_names: Add more flexible arguments#3486

Merged
thocevar merged 3 commits intobiolab:masterfrom
janezd:improve-get-unique-names
Jan 4, 2019
Merged

util.get_unique_names: Add more flexible arguments#3486
thocevar merged 3 commits intobiolab:masterfrom
janezd:improve-get-unique-names

Conversation

@janezd
Copy link
Contributor

@janezd janezd commented Dec 18, 2018

Issue

Orange.data.util.get_unique_names accept a list of used names. When we call it, we almost always have a domain. Let the function accept a domain, too.

While at it, the second argument could also be a string, not a list of strings.

While at it, write some tests.

Fixes #3495, too.

Includes
  • Code changes
  • Tests
  • Documentation

@ajdapretnar ajdapretnar mentioned this pull request Dec 18, 2018
3 tasks
@janezd janezd force-pushed the improve-get-unique-names branch 2 times, most recently from 069d61f to fb4b645 Compare December 20, 2018 17:20
@codecov
Copy link

codecov bot commented Dec 20, 2018

Codecov Report

Merging #3486 into master will increase coverage by 0.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #3486      +/-   ##
==========================================
+ Coverage   83.55%   83.57%   +0.01%     
==========================================
  Files         367      368       +1     
  Lines       65454    65491      +37     
==========================================
+ Hits        54691    54731      +40     
+ Misses      10763    10760       -3

@codecov
Copy link

codecov bot commented Dec 20, 2018

Codecov Report

Merging #3486 into master will decrease coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #3486      +/-   ##
==========================================
- Coverage   83.51%   83.51%   -0.01%     
==========================================
  Files         367      368       +1     
  Lines       65599    65618      +19     
==========================================
+ Hits        54787    54802      +15     
- Misses      10812    10816       +4

@janezd janezd force-pushed the improve-get-unique-names branch 3 times, most recently from 56219ff to 9ffd963 Compare December 21, 2018 12:58
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