Skip to content

Commit 2c901f7

Browse files
committed
Remove all docstrings in __star__ methods
1 parent 40b7bfa commit 2c901f7

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

src/aspire/source/xform.py

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@ def disabled(self):
8383
return Xform.XformActiveContextManager(self, active=False)
8484

8585
def __str__(self):
86-
"""
87-
Show class name of Xform
88-
:return: A string of class name
89-
"""
9086
return self.__class__.__name__
9187

9288

@@ -141,10 +137,6 @@ def _forward(self, im, indices):
141137
return im_new
142138

143139
def __str__(self):
144-
"""
145-
Show class name and related scaling information
146-
:return: A string of class name and related information
147-
"""
148140
if self.multipliers.size == 1:
149141
str_out = (self.__class__.__name__ + ' by same number of '
150142
+ str(self.multipliers))
@@ -185,10 +177,6 @@ def _adjoint(self, im, indices):
185177
return im_new
186178

187179
def __str__(self):
188-
"""
189-
Show class name and related shift information
190-
:return: A string of class name and related information
191-
"""
192180
if self.n == 1:
193181
str_out = (self.__class__.__name__ + ' by same number of '
194182
+ str(self.shifts))
@@ -214,10 +202,6 @@ def _adjoint(self, im, indices):
214202
raise NotImplementedError('Adjoint of downsampling not implemented yet.')
215203

216204
def __str__(self):
217-
"""
218-
Show class name and related downsample resolution
219-
:return: A string of class name and related information
220-
"""
221205
return (self.__class__.__name__ + ' at resolution of '
222206
+ str(self.resolution))
223207

@@ -238,10 +222,6 @@ def _forward(self, im, indices):
238222
return im.filter(self.filter)
239223

240224
def __str__(self):
241-
"""
242-
Show class name and related filter name
243-
:return: A string of class name and related information
244-
"""
245225
return (self.__class__.__name__ + ' with filter of '
246226
+ str(self.filter))
247227

@@ -268,10 +248,6 @@ def _forward(self, im, indices):
268248
return im_new
269249

270250
def __str__(self):
271-
"""
272-
Show class name and related Add information
273-
:return: A string of class name and related information
274-
"""
275251
if self.addend.size == 1:
276252
str_out = (self.__class__.__name__ + ' with same number of '
277253
+ str(self.addend))
@@ -306,10 +282,6 @@ def _forward(self, im, indices):
306282
return Image(im_out)
307283

308284
def __str__(self):
309-
"""
310-
Show class name and related filter name
311-
:return: A string of class name and related information
312-
"""
313285
return (self.__class__.__name__ + ' with filters of '
314286
+ str(self.filters[0]))
315287

@@ -338,10 +310,6 @@ def _forward(self, im, indices):
338310
return Image(im_out)
339311

340312
def __str__(self):
341-
"""
342-
Show class name and related lambda function name
343-
:return: A string of class name and related information
344-
"""
345313
return (self.__class__.__name__ + ' with function of '
346314
+ self.lambda_fun.__name__)
347315

0 commit comments

Comments
 (0)