Commit 8991d0b2 authored by Marc Duez's avatar Marc Duez

fuse.py: retro-compatibilité avec les premiers fichiers contenant seg_stat

parent a051ebbf
......@@ -432,7 +432,11 @@ class ListWindows:
if "window" in obj_dict:
obj = Window(1)
for key in obj_dict :
obj.d[key]=obj_dict[key]
#hack for data file with seg_stat (first version)
if key == "seg_stat" and isinstance(obj_dict[key], dict) :
obj.d[key]=[obj_dict[key]]
else :
obj.d[key]=obj_dict[key]
return obj
if not "window" in obj_dict and not "reads_segmented" in obj_dict:
......
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