Commit ab94d787 authored by flothoni's avatar flothoni

fuse.py; fix init of doctest testing data

parent 9838ec92
Pipeline #140448 passed with stage
in 10 seconds
......@@ -1423,12 +1423,14 @@ seg_w7 = {
}
lw1 = ListWindows()
lw1.d["samples"].d["original_names"] = ["lw1"]
lw1.d["timestamp"] = 'ts'
lw1.d["reads"] = json.loads('{"total": [30], "segmented": [25], "germline": {}, "distribution": {}}', object_hook=lw1.toPython)
lw1.d["clones"].append(w5)
lw1.d["clones"].append(w6)
lw1.d["diversity"] = Diversity()
lw1.init_distrib([])
lw1.compute_distribution([])
w7 = Window(1)
w7.d ={"id" : "aaa", "reads" : [8], "top" : 4 }
......@@ -1436,12 +1438,14 @@ w8 = Window(1)
w8.d ={"id" : "ccc", "reads" : [2], "top" : 8, "test" : ["plop"] }
lw2 = ListWindows()
lw2.d["samples"].d["original_names"] = ["lw2"]
lw2.d["timestamp"] = 'ts'
lw2.d["reads"] = json.loads('{"total": [40], "segmented": [34], "germline": {}, "distribution": {}}', object_hook=lw1.toPython)
lw2.d["clones"].append(w7)
lw2.d["clones"].append(w8)
lw2.d["diversity"] = Diversity()
lw2.init_distrib([])
lw2.compute_distribution([])
def get_preset_of_distributions():
......
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