Skip to content

Commit e5f6b38

Browse files
committed
remove 'get/set' docstring statements; finally remembered to look
1 parent 96f28ea commit e5f6b38

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

adafruit_lsm9ds0.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def __init__(self):
170170

171171
@property
172172
def accel_range(self):
173-
"""Get and set the accelerometer range. Must be a value of:
173+
"""The accelerometer range. Must be a value of:
174174
- ACCELRANGE_2G
175175
- ACCELRANGE_4G
176176
- ACCELRANGE_6G
@@ -201,7 +201,7 @@ def accel_range(self, val):
201201

202202
@property
203203
def mag_gain(self):
204-
"""Get and set the magnetometer gain. Must be a value of:
204+
"""The magnetometer gain. Must be a value of:
205205
- MAGGAIN_2GAUSS
206206
- MAGGAIN_4GAUSS
207207
- MAGGAIN_8GAUSS
@@ -229,7 +229,7 @@ def mag_gain(self, val):
229229

230230
@property
231231
def gyro_scale(self):
232-
"""Get and set the gyroscope scale. Must be a value of:
232+
"""The gyroscope scale. Must be a value of:
233233
- GYROSCALE_245DPS
234234
- GYROSCALE_500DPS
235235
- GYROSCALE_2000DPS
@@ -265,7 +265,7 @@ def read_accel_raw(self):
265265

266266
@property
267267
def accelerometer(self):
268-
"""Get the accelerometer X, Y, Z axis values as a 3-tuple of
268+
"""Returns the accelerometer X, Y, Z axis values as a 3-tuple of
269269
m/s^2 values.
270270
"""
271271
raw = self.read_accel_raw()
@@ -286,7 +286,7 @@ def read_mag_raw(self):
286286

287287
@property
288288
def magnetometer(self):
289-
"""Get the magnetometer X, Y, Z axis values as a 3-tuple of
289+
"""Returns the magnetometer X, Y, Z axis values as a 3-tuple of
290290
gauss values.
291291
"""
292292
raw = self.read_mag_raw()
@@ -306,7 +306,7 @@ def read_gyro_raw(self):
306306

307307
@property
308308
def gyroscope(self):
309-
"""Get the gyroscope X, Y, Z axis values as a 3-tuple of
309+
"""Returns the gyroscope X, Y, Z axis values as a 3-tuple of
310310
degrees/second values.
311311
"""
312312
raw = self.read_mag_raw()
@@ -325,7 +325,7 @@ def read_temp_raw(self):
325325

326326
@property
327327
def temperature(self):
328-
"""Get the temperature of the sensor in degrees Celsius."""
328+
"""Returns the temperature of the sensor in degrees Celsius."""
329329
# This is just a guess since the starting point (21C here) isn't documented :(
330330
temp = self.read_temp_raw()
331331
temp = 21.0 + temp/8

0 commit comments

Comments
 (0)