Commit 7955bff0 authored by Marc Duez's avatar Marc Duez
Browse files

fuse.py : detect a listWindows by the attribute reads_segmented instead of...

fuse.py : detect a listWindows by the attribute reads_segmented instead of reads_total (cause reads_total is optionnal)
- and accept .vidjil extension ( same as .data )
parent 010de8df
......@@ -173,7 +173,7 @@ class ListWindows:
print "<==", file_path, "\t"
if (extension=="data"):
if (extension=="data" or extension=="vidjil"):
with open(file_path, "r") as file:
tmp = json.load(file, object_hook=self.toPython)
self.d=tmp.d
......@@ -369,7 +369,7 @@ class ListWindows:
def toPython(self, obj_dict):
'''Reverse serializer for json module'''
if "reads_total" in obj_dict:
if "reads_segmented" in obj_dict:
obj = ListWindows()
for key in obj_dict :
if isinstance(obj_dict[key], list):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment