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] Select Rows filter enum #1854

Merged
merged 5 commits into from
Jan 4, 2017

Conversation

ales-erjavec
Copy link
Contributor

Issue
Error:
----------------------------- TypeError Exception -----------------------------
Traceback (most recent call last):
  File "/Users/aleserjavec/workspace/orange3/Orange/widgets/data/owselectrows.py", line 362, in conditions_changed
    self.commit()
  File "/Users/aleserjavec/workspace/orange3/Orange/widgets/gui.py", line 1972, in unconditional_commit
    do_commit()
  File "/Users/aleserjavec/workspace/orange3/Orange/widgets/gui.py", line 1980, in do_commit
    commit()
  File "/Users/aleserjavec/workspace/orange3/Orange/widgets/data/owselectrows.py", line 417, in commit
    matching_output = self.filters(self.data)
  File "/Users/aleserjavec/workspace/orange3/Orange/data/filter.py", line 216, in __call__
    return data._filter_values(self)
  File "/Users/aleserjavec/workspace/orange3/Orange/data/table.py", line 1246, in _filter_values
    sel = self._filter_values_indicators(filter)
  File "/Users/aleserjavec/workspace/orange3/Orange/data/table.py", line 1222, in _filter_values_indicators
    raise TypeError("Invalid operator")
TypeError: Invalid operator

The widget was broken since 60e1369 which changed the filter type enums.

Description of changes

Use proper Filter{Continuous,String}.Type enums for constructing filters.

Includes
  • Code changes
  • Tests
  • Documentation

PyQt5 5.7.1 on PyPi falsely advertises python 3.4 support
Insert the widget into the view before setting filter values.
Ensure (somewhat) more consistent view of the state if/when
conditions_changed is invoked from `set_new_values`
@codecov-io
Copy link

codecov-io commented Jan 3, 2017

Current coverage is 89.21% (diff: 100%)

Merging #1854 into master will increase coverage by 0.01%

@@             master      #1854   diff @@
==========================================
  Files            86         86          
  Lines          9077       9077          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits           8097       8098     +1   
+ Misses          980        979     -1   
  Partials          0          0          

Sunburst

Powered by Codecov. Last update f0e4ea3...6b001f6

@ajdapretnar
Copy link
Contributor

Travis complains on an unrelated test and this fixes a vital issue. Could @lanzagar please check and merge asap? Thanks!

@lanzagar lanzagar merged commit d9fcfed into biolab:master Jan 4, 2017
astaric pushed a commit to astaric/orange3 that referenced this pull request Jan 4, 2017
astaric pushed a commit to astaric/orange3 that referenced this pull request Jan 4, 2017
astaric pushed a commit to astaric/orange3 that referenced this pull request Jan 4, 2017
@astaric astaric modified the milestone: 3.3.10 Jan 4, 2017
astaric pushed a commit to astaric/orange3 that referenced this pull request Jan 6, 2017
…um-use

[FIX] Select Rows filter enum
(cherry picked from commit d9fcfed)
astaric pushed a commit to astaric/orange3 that referenced this pull request Jan 10, 2017
…um-use

[FIX] Select Rows filter enum
(cherry picked from commit d9fcfed)
astaric pushed a commit to astaric/orange3 that referenced this pull request Jan 11, 2017
…um-use

[FIX] Select Rows filter enum
(cherry picked from commit d9fcfed)
astaric pushed a commit to astaric/orange3 that referenced this pull request Jan 13, 2017
…um-use

[FIX] Select Rows filter enum
(cherry picked from commit d9fcfed)
astaric pushed a commit to astaric/orange3 that referenced this pull request Jan 18, 2017
…um-use

[FIX] Select Rows filter enum
(cherry picked from commit d9fcfed)
@ales-erjavec ales-erjavec deleted the fixes/select-rows-enum-use branch January 27, 2017 10:40
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.

5 participants