Skip to content

Commit

Permalink
Merge pull request #56 from TileDB-Inc/mg/update-legacy-class
Browse files Browse the repository at this point in the history
Update show.py
  • Loading branch information
MargrietGroenendijk authored May 31, 2023
2 parents 1dc94cf + 4ed3609 commit 2db369c
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions pybabylonjs/show.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,13 @@ def from_dict(

data = check_point_cloud_data_dict(mode, data)

point_cloud_args = check_point_cloud_args(mode, kwargs)
point_cloud_args = check_point_cloud_args(mode, False, kwargs)

d = {
**point_cloud_args,
"uri": uri,
"data": data,
"streaming": False,
"source": source,
"mode": mode,
}
Expand Down Expand Up @@ -147,23 +148,15 @@ class BabylonJS:
def __init__(self):
self.value = None
self.z_scale = None
self.width = None
self.height = None

def _ipython_display_(self):
kwargs = check_point_cloud_args("default", {})
kwargs = check_point_cloud_args("default", False, {})

kwargs["source"] = "dict"

if self.z_scale:
kwargs["z_scale"] = self.z_scale

if self.width:
kwargs["width"] = self.width

if self.height:
kwargs["height"] = self.height

d = {"data": self.value}

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

0 comments on commit 2db369c

Please sign in to comment.