Skip to content

Commit

Permalink
chore: fixing labels in parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
dbirman committed Sep 10, 2023
1 parent 5ed7478 commit f07caa5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions API/oursin/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,11 @@ def set_rotation(self, rotation):
self.rotation = rotation
client.sio.emit('SetCameraRotation', {self.id: rotation})

def set_rotation_axial(self, bool=True):
def set_rotation_axial(self, above=True):
"""Set the camera to the standard axial view. Does not change the window, only the rotation.
Parameters
----------
bool : boolean
above : boolean
default true, the above view
Examples
Expand All @@ -174,7 +174,7 @@ def set_rotation_axial(self, bool=True):
if self.in_unity == False:
raise Exception("Camera is not created. Please create camera before calling method.")

if bool:
if above:
rotation = [0,0,0]
else:
rotation = [0,-180,0]
Expand All @@ -183,7 +183,7 @@ def set_rotation_axial(self, bool=True):
client.sio.emit('SetCameraRotation', {self.id: rotation})


def set_rotation_coronal(self, bool=True):
def set_rotation_coronal(self, back=True):
"""Set the camera to the standard coronal view. Does not change the window, only the rotation.
Parameters
----------
Expand All @@ -197,7 +197,7 @@ def set_rotation_coronal(self, bool=True):
if self.in_unity == False:
raise Exception("Camera is not created. Please create camera before calling method.")

if bool:
if back:
rotation = [90,0,0]
else:
rotation = [90,-180,0]
Expand All @@ -206,7 +206,7 @@ def set_rotation_coronal(self, bool=True):
client.sio.emit('SetCameraRotation', {self.id: rotation})


def set_rotation_sagittal(self, bool=True):
def set_rotation_sagittal(self, left=True):
"""Set the camera to the standard sagittal view. Does not change the window, only the rotation.
Parameters
----------
Expand All @@ -220,7 +220,7 @@ def set_rotation_sagittal(self, bool=True):
if self.in_unity == False:
raise Exception("Camera is not created. Please create camera before calling method.")

if bool:
if left:
rotation = [90,-90,0]
else:
rotation = [90,90,0]
Expand Down

0 comments on commit f07caa5

Please sign in to comment.