Commit 35e043cb authored by Thonier Florian's avatar Thonier Florian

fuse.py; add a fixme comment; return aggregation of categories at distributions export

link to #3902
parent ee2c24c3
......@@ -657,7 +657,6 @@ class ListWindows(VidjilJson):
# verify that same file is not present twice
filename_jlist1 = list(self.d["distributions"]["repertoires"].keys())
filename_jlist2 = list(other.d["distributions"]["repertoires"].keys())
print( filename_jlist1+filename_jlist2 )
for filename in filename_jlist1:
if filename in filename_jlist2:
raise( "Error, duplicate file name (in distributions) ")
......@@ -667,7 +666,6 @@ class ListWindows(VidjilJson):
obj.d["distributions"]["keys"] = ["clones", "reads"]
obj.d["distributions"]["filters"] = {}
obj.d["distributions"]["categories"] = {}
obj.d["distributions"]["metadata"] = {}
for filename in filename_jlist1:
obj.d["distributions"]["repertoires"][filename] = self.d["distributions"]["repertoires"][filename]
for filename in filename_jlist2:
......@@ -888,8 +886,8 @@ class ListWindows(VidjilJson):
self.d["distributions"]["repertoires"] = defaultdict(lambda:[])
self.d["distributions"]["keys"] = ["clones", "reads"]
self.d["distributions"]["filters"] = []
self.d["distributions"]["categories"] = {}
self.d["distributions"]["categories"] = self.d["categories"].get_aggreg()
# Warning, will fail of there are same original_names; fixme
nb_sample = self.d["samples"].d["number"]
# prefill distribution for each file of jlist
......
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