Skip to content

Commit

Permalink
use fos.write_json too
Browse files Browse the repository at this point in the history
  • Loading branch information
sashankaryal committed Apr 5, 2024
1 parent cea9a3d commit fa46243
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fiftyone/core/threed/scene_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,7 @@ def write(self, fo3d_path: str, resolve_relative_paths=False):
fo3d_path_dir, node.ply_path
)

with open(fo3d_path, "w") as f:
json.dump(validated_scene.as_dict(), f, indent=4)
fos.write_json(validated_scene.as_dict(), fo3d_path, pretty_print=True)

def traverse(self, include_self=False):
"""Traverse the scene graph.
Expand Down

0 comments on commit fa46243

Please sign in to comment.