Skip to content
Snippets Groups Projects
Commit 19a28cab authored by Yassin's avatar Yassin
Browse files

Fixing Fraction Filter

parent 38993a76
No related branches found
No related tags found
No related merge requests found
import math
import networkx as nx
from NetBone.Utils.utils import edge_properties
def boolean_filter(backbone, narrate=True):
......@@ -63,7 +65,7 @@ def fraction_filter(backbone, value, narrate=True, secondary_column='weight', se
if "secondary_column" in keys:
secondary_column = kwargs['secondary_column']
value = int(value * len(data))
value = math.ceil(value * len(data))
if fraction_filter in backbone.filters():
if boolean_filter in backbone.filters():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment