Commit c3e3b40e authored by Marc Duez's avatar Marc Duez

fuse.py : simplify (copy is not neede anymore)

parent c53c58c9
......@@ -595,32 +595,25 @@ class ListWindows:
'''Reverse serializer for json module'''
if "samples" in obj_dict:
obj = ListWindows()
for key in obj_dict :
obj.d[key]=obj_dict[key]
obj.d=obj_dict
return obj
if "id" in obj_dict:
obj = Window(1)
for key in obj_dict :
obj.d[key]=obj_dict[key]
obj.d=obj_dict
return obj
if "total" in obj_dict:
obj = Reads()
for key in obj_dict :
obj.d[key]=obj_dict[key]
obj.d=obj_dict
return obj
if "original_names" in obj_dict:
obj = Samples()
for key in obj_dict :
obj.d[key]=obj_dict[key]
obj.d=obj_dict
return obj
res = {}
for key in obj_dict :
res[key]=obj_dict[key]
return res
return 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