File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -183,6 +183,9 @@ def read_hdf(filename: str) -> List[LayerData]:
183
183
old_idx = temp .columns .to_frame ()
184
184
old_idx .insert (0 , "individuals" , "" )
185
185
temp .columns = pd .MultiIndex .from_frame (old_idx )
186
+ colormap = "viridis"
187
+ else :
188
+ colormap = "Set3"
186
189
if isinstance (temp .index , pd .MultiIndex ):
187
190
temp .index = [os .path .join (* row ) for row in temp .index ]
188
191
df = (
@@ -210,6 +213,7 @@ def read_hdf(filename: str) -> List[LayerData]:
210
213
ids = df ["individuals" ],
211
214
likelihood = df .get ("likelihood" ),
212
215
paths = list (paths2inds ),
216
+ colormap = colormap ,
213
217
)
214
218
metadata ["name" ] = os .path .split (filename )[1 ].split ("." )[0 ]
215
219
metadata ["metadata" ]["root" ] = os .path .split (filename )[0 ]
You can’t perform that action at this time.
0 commit comments