Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Fix missing values after purging unused values #4432

Merged
merged 1 commit into from
Feb 20, 2020

Conversation

janezd
Copy link
Contributor

@janezd janezd commented Feb 17, 2020

Issue

Fixes #4416.

When removing Variable.make, I assumed that we no longer needed Lookup in remove_unused_values because values are mapped anyway. This doesn't work when the variable that is being purged has compute_value defined, for instance if the variable is a discretized version of some numeric variable.

Description of changes

Re-add lookup.

Although the bug was in remover, I also kept the test in test_owselectrows, where we detected the problem.

Includes
  • Code changes
  • Tests

@janezd janezd changed the title [FIX] Purging unused values sometimes failed [FIX] Fix missing after purging unused values Feb 17, 2020
@codecov
Copy link

codecov bot commented Feb 17, 2020

Codecov Report

Merging #4432 into master will increase coverage by 0.00%.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #4432   +/-   ##
=======================================
  Coverage   87.47%   87.47%           
=======================================
  Files         405      405           
  Lines       74135    74148   +13     
=======================================
+ Hits        64846    64862   +16     
+ Misses       9289     9286    -3     

@janezd janezd changed the title [FIX] Fix missing after purging unused values [FIX] Fix missing values after purging unused values Feb 17, 2020
@lanzagar lanzagar merged commit 395a391 into biolab:master Feb 20, 2020
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.

"Select Rows" loses class labels with "Remove unused classes"
2 participants