NodeEqualNumberFilter does not work

Bug #823038 reported by Luiz Ribeiro on 2011-08-09
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Gephi
Fix Released
High
Mathieu Bastian

Bug Description

Filtering with the Attribute Equals filter doesn't work on an Integer column (and probably doesn't work with other Number types).

Steps to reproduce this bug:

1. Add a few nodes to a newly created graph (say, 3 nodes);
2. Create a new attribute column with the Integer type (let's call this "num");
3. Assign values to each of the nodes (e.g. {1, 2, 3});
4. Try filtering the graph with the Attributes Equal filter on the "num" column, from Filters UI.

The following exception is thrown:
java.lang.IllegalArgumentException: min, max and value must be the same class
 at org.gephi.filters.api.Range.tribToBounds(Range.java:356)
 at org.gephi.filters.plugin.attribute.AttributeEqualBuilder$EqualNumberFilter.refreshValues(AttributeEqualBuilder.java:390)
 at org.gephi.filters.plugin.attribute.AttributeEqualBuilder$EqualNumberFilter.init(AttributeEqualBuilder.java:337)
 at org.gephi.filters.FilterProcessor.processNodeFilter(FilterProcessor.java:110)
 at org.gephi.filters.FilterProcessor.process(FilterProcessor.java:84)
 at org.gephi.filters.FilterThread.filter(FilterThread.java:128)
[catch] at org.gephi.filters.FilterThread.run(FilterThread.java:99)

I have the same problem when trying to filter with the Filters API (i.e. through code, without the UI).

Changed in gephi:
status: New → Incomplete
status: Incomplete → Confirmed
importance: Undecided → High
assignee: nobody → Mathieu Bastian (mathieu.bastian)

Fixed in rev 2310

Changed in gephi:
status: Confirmed → Fix Committed
Changed in gephi:
milestone: none → 0.8alpha
Changed in gephi:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers