Commit a887f590 authored by Thonier Florian's avatar Thonier Florian; add function to export distributions as a json file.

This function can be seperated for json_save function
link to #3902
parent 9fde1155
......@@ -779,6 +779,14 @@ class ListWindows(VidjilJson):
return obj
def save_distributions(self, foname):
fo = open(foname, "w")
json.dump(self.d["distributions"], fo, indent=2)
### some data used for test
w1 = Window(1)
w1.d ={"id" : "aaa", "reads" : [5], "top" : 3 }
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