Skip to content

Commit

Permalink
Make camera parameters consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
adamltyson committed Jun 6, 2024
1 parent f7271bf commit 140c6ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions brainrender/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def check_camera_param(camera):
"""
Check that a dictionary of camera parameters
is complete. Must have entries:
["position", "focal", "viewup", "distance", "clipping"]
["pos", "viewup", "clipping_range"]
:param camera: str, dict
"""
Expand Down Expand Up @@ -106,6 +106,5 @@ def clean(val):
viewup=clean(cam.GetViewUp()),
distance=clean(cam.GetDistance()),
clipping_range=clean(cam.GetClippingRange()),
# orientation=clean(cam.GetOrientation()),
)
return params

0 comments on commit 140c6ce

Please sign in to comment.