Skip to content

Commit 3df1324

Browse files
committed
added functionality to pickle filtered dataframes
1 parent b0b5bf5 commit 3df1324

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyreason/scripts/utils/filter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ def filter_and_sort(self, interpretation, labels, bound, sort_by='lower', descen
7272
for (comp, l), bnd in d.items():
7373
if l.get_value() in labels and bnd in bound:
7474
if comp not in nodes[t]:
75-
nodes[t][comp] = {lab:interval.closed(0,1) for lab in labels}
76-
nodes[t][comp][l.get_value()] = bnd
75+
nodes[t][comp] = {lab:[0,1] for lab in labels}
76+
nodes[t][comp][l.get_value()] = [bnd.lower, bnd.upper]
7777

7878

7979
dataframes = []

0 commit comments

Comments
 (0)