Skip to content

Commit ddca526

Browse files
committed
Fix bug
1 parent 7d91392 commit ddca526

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

vitessce/config.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ def __init__(self, component, coordination_scopes, x, y, w, h, uid=None):
480480
"x": x,
481481
"y": y,
482482
"w": w,
483-
"h": h,
483+
"h": h
484484
}
485485
if uid is not None:
486486
self.view["uid"] = uid
@@ -491,9 +491,8 @@ def _to_py_params(self):
491491
"x": self.view["x"],
492492
"y": self.view["y"],
493493
"w": self.view["w"],
494+
"h": self.view["h"],
494495
}
495-
if "uid" in self.view:
496-
params_dict["uid"] = self.view["uid"]
497496
# Only include coordination_scopes if there are coordination scopes other than
498497
# the coorindation scope for the 'dataset' coordination type.
499498
non_dataset_coordination_scopes = {
@@ -503,6 +502,8 @@ def _to_py_params(self):
503502
}
504503
if len(non_dataset_coordination_scopes) > 0:
505504
params_dict["coordination_scopes"] = non_dataset_coordination_scopes
505+
if "uid" in self.view:
506+
params_dict["uid"] = self.view["uid"]
506507
return params_dict
507508

508509
def get_coordination_scope(self, c_type):
@@ -1005,7 +1006,7 @@ def get_datasets(self):
10051006
"""
10061007
return self.config["datasets"]
10071008

1008-
def add_view(self, view_type, dataset=None, dataset_uid=None, x=0, y=0, w=1, h=1, mapping=None, uid=None, coordination_scopes=None, props=None):
1009+
def add_view(self, view_type, dataset=None, dataset_uid=None, x=0, y=0, w=1, h=1, mapping=None, coordination_scopes=None, props=None, uid=None):
10091010
"""
10101011
Add a view to the config.
10111012

0 commit comments

Comments
 (0)