Skip to content

Commit 2db369c

Browse files
Merge pull request #56 from TileDB-Inc/mg/update-legacy-class
Update show.py
2 parents 1dc94cf + 4ed3609 commit 2db369c

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

pybabylonjs/show.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,13 @@ def from_dict(
104104

105105
data = check_point_cloud_data_dict(mode, data)
106106

107-
point_cloud_args = check_point_cloud_args(mode, kwargs)
107+
point_cloud_args = check_point_cloud_args(mode, False, kwargs)
108108

109109
d = {
110110
**point_cloud_args,
111111
"uri": uri,
112112
"data": data,
113+
"streaming": False,
113114
"source": source,
114115
"mode": mode,
115116
}
@@ -147,23 +148,15 @@ class BabylonJS:
147148
def __init__(self):
148149
self.value = None
149150
self.z_scale = None
150-
self.width = None
151-
self.height = None
152151

153152
def _ipython_display_(self):
154-
kwargs = check_point_cloud_args("default", {})
153+
kwargs = check_point_cloud_args("default", False, {})
155154

156155
kwargs["source"] = "dict"
157156

158157
if self.z_scale:
159158
kwargs["z_scale"] = self.z_scale
160159

161-
if self.width:
162-
kwargs["width"] = self.width
163-
164-
if self.height:
165-
kwargs["height"] = self.height
166-
167160
d = {"data": self.value}
168161

169162
create_dataviz(BabylonPointCloud(), d, **kwargs)

0 commit comments

Comments
 (0)