Skip to content

Commit 79fa98d

Browse files
committed
modify filter output as json
1 parent a0f78a3 commit 79fa98d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

dataflow/utils/utils.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -287,11 +287,8 @@ def filter():
287287
result[recorder] = True
288288
result = result.tolist()
289289
save_path = cfg['save_path']
290-
from bitarray import bitarray
291-
ba = bitarray(result)
292-
with open(save_path, 'wb') as f:
293-
ba.tofile(f)
294-
print(json.dumps({"bool": result}))
290+
with open(save_path, 'w') as f:
291+
json.dump({"bool": result}, f)
295292

296293
def refine():
297294
from ..config import api_init_config

0 commit comments

Comments
 (0)