German Larrain avatar German Larrain committed a0f2502

abstract methods/properties: replaced `raise NotImplementedError()` with `pass`.

Comments (0)

Files changed (5)

ars/app/__init__.py

 		>>> self.sim.add_sphere(0.5, (1,10,1), density=1)
 
 		"""
-		raise NotImplementedError()
+		pass
 
 	def set_key_2_action_mapping(self):
 		"""Creates an Action map, assigns it to :attr:`key_press_functions`

ars/graphics/base.py

 		:type obj: :class:`Body`
 
 		"""
-		raise NotImplementedError()
+		pass
 
 	@abstractmethod
 	def remove_object(self, obj):
 		:type obj: :class:`Body`
 
 		"""
-		raise NotImplementedError()
+		pass
 
 	def add_objects_list(self, obj_list):
 		for obj in obj_list:
 	@abstractmethod
 	def start_window(
             self, on_idle_callback, on_reset_callback, on_key_press_callback):
-		raise NotImplementedError()
+		pass
 
 	@abstractmethod
 	def restart_window(self):
-		raise NotImplementedError()
+		pass
 
 	@abstractmethod
 	def finalize_window(self):
 		"""Finalize window and remove/clear associated resources."""
-		raise NotImplementedError()
+		pass
 
 	@abstractmethod
 	def _timer_callback(self, obj, event):
-		raise NotImplementedError()
+		pass
 
 	@abstractmethod
 	def _key_press_callback(self, obj, event):
-		raise NotImplementedError()
+		pass
 
 	@abstractmethod
 	def reset(self):
-		raise NotImplementedError()
+		pass
 
 	@staticmethod
 	@abstractmethod
 	def _update_pose(obj, pos, rot):
-		raise NotImplementedError()
+		pass
 
 
 class ScreenshotRecorder(object):
 		:type time:
 
 		"""
-		raise NotImplementedError()
+		pass
 
 	def calc_filename(self, index=1):
 		"""Calculate a filename using ``index`` for a new image.

ars/model/collision/base.py

 
 	@abstractmethod
 	def collide(self, args, callback):
-		raise NotImplementedError()
+		pass
 
 #==============================================================================
 # Parents

ars/model/physics/base.py

 
 	@abstractproperty
 	def gravity(self):
-		raise NotImplementedError()
+		pass
 
 	@abstractmethod
 	def step(self, time_step):
 		signals, defined in :mod:`ars.model.physics.signals`.
 
 		"""
-		raise NotImplementedError()
+		pass
 
 #==============================================================================
 # Parents
 		:rtype: 3-sequence of floats
 
 		"""
-		raise NotImplementedError()
+		pass
 
 	@abstractmethod
 	def get_linear_velocity(self):
-		raise NotImplementedError()
+		pass
 
 	@abstractmethod
 	def get_rotation(self):
 		:rtype: 9-sequence of floats
 
 		"""
-		raise NotImplementedError()
+		pass
 
 	@abstractmethod
 	def get_angular_velocity(self):
-		raise NotImplementedError()
+		pass
 
 	@abstractmethod
 	def get_mass(self):
-		raise NotImplementedError()
+		pass
 
 	@abstractmethod
 	def get_center_of_gravity(self):
-		raise NotImplementedError()
+		pass
 
 	@abstractmethod
 	def get_inertia_tensor(self):
-		raise NotImplementedError()
+		pass
 
 	@abstractmethod
 	def set_position(self, pos):
 		:type pos: 3-sequence of floats
 
 		"""
-		raise NotImplementedError()
+		pass
 
 	@abstractmethod
 	def set_rotation(self, rot):
 		:type rot: 9-sequence of floats
 
 		"""
-		raise NotImplementedError()
+		pass
 
 	def save_velocities(self):
 		"""Retrieve the actual velocities (linear and angular) of the body and

ars/model/robot/sensors.py

 	@abstractmethod
 	def _build_data(self):
 		"""Create and return a :class:`SensorData` object."""
-		raise NotImplementedError()
+		pass
 
 	def get_measurement(self):
 		"""Return a measurement of the sensor packed in a data structure."""
 		:rtype: :class:`SensorData`
 
 		"""
-		raise NotImplementedError()
+		pass
 
 	def _get_time(self):
 		"""Return the time to set to the :class`SensorData` instance.
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.