1. German Larrain
  2. ars

Commits

German Larrain  committed 3feff14

renamed params: 'object_'/'objects_list_' to 'obj'/'obj_list'.

  • Participants
  • Parent commits e21784f
  • Branches dev

Comments (0)

Files changed (3)

File ars/graphics/__init__.py

View file
 		self._window_started = False
 
 	@abstractmethod
-	def add_object(self, object_):
+	def add_object(self, obj):
 		raise NotImplementedError()
 
-	def add_objects_list(self, objects_list_):
-		for object_ in objects_list_:
-			self.add_object(object_)
+	def add_objects_list(self, obj_list):
+		for obj in obj_list:
+			self.add_object(obj)
 
 	@abstractmethod
 	def start_window(

File ars/graphics/adapters.py

View file
 		self._cam_position = cam_position
 		self._background_color = background_color
 
-	def add_object(self, object_):
-		self.renderer.AddActor(object_.actor)
+	def add_object(self, obj):
+		self.renderer.AddActor(obj.actor)
 
-	def remove_object(self, object_):
-		self.renderer.RemoveActor(object_.actor)
+	def remove_object(self, obj):
+		self.renderer.RemoveActor(obj.actor)
 
 	def start_window(self, on_idle_callback=None, on_reset_callback=None,
                      on_key_press_callback=None):

File ars/model/simulator/__init__.py

View file
 		new_pos = mu.add3(offset_pos, pos)
 		self.set_position(new_pos)
 
-	def offset_by_object(self, object_):
-		offset_pos = object_.get_position()
+	def offset_by_object(self, obj):
+		offset_pos = obj.get_position()
 		self.offset_by_position(offset_pos)
 
 	def update_actor(self):