@@ -256,10 +256,9 @@ def __str__(self):
256256 return "{}({})" .format (type (self ).__name__ , self ._resolution )
257257
258258 def transform_path_non_affine (self , path ):
259+ # docstring inherited
259260 ipath = path .interpolated (self ._resolution )
260261 return Path (self .transform (ipath .vertices ), ipath .codes )
261- transform_path_non_affine .__doc__ = \
262- Transform .transform_path_non_affine .__doc__
263262
264263
265264class AitoffAxes (GeoAxes ):
@@ -269,6 +268,7 @@ class AitoffTransform(_GeoTransform):
269268 """The base Aitoff transform."""
270269
271270 def transform_non_affine (self , ll ):
271+ # docstring inherited
272272 longitude = ll [:, 0 ]
273273 latitude = ll [:, 1 ]
274274
@@ -286,22 +286,21 @@ def transform_non_affine(self, ll):
286286 xy [:, 0 ] = (cos_latitude * np .sin (half_long )) / sinc_alpha
287287 xy [:, 1 ] = np .sin (latitude ) / sinc_alpha
288288 return xy
289- transform_non_affine .__doc__ = Transform .transform_non_affine .__doc__
290289
291290 def inverted (self ):
291+ # docstring inherited
292292 return AitoffAxes .InvertedAitoffTransform (self ._resolution )
293- inverted .__doc__ = Transform .inverted .__doc__
294293
295294 class InvertedAitoffTransform (_GeoTransform ):
296295
297296 def transform_non_affine (self , xy ):
297+ # docstring inherited
298298 # MGDTODO: Math is hard ;(
299299 return xy
300- transform_non_affine .__doc__ = Transform .transform_non_affine .__doc__
301300
302301 def inverted (self ):
302+ # docstring inherited
303303 return AitoffAxes .AitoffTransform (self ._resolution )
304- inverted .__doc__ = Transform .inverted .__doc__
305304
306305 def __init__ (self , * args , ** kwargs ):
307306 self ._longitude_cap = np .pi / 2.0
@@ -320,6 +319,7 @@ class HammerTransform(_GeoTransform):
320319 """The base Hammer transform."""
321320
322321 def transform_non_affine (self , ll ):
322+ # docstring inherited
323323 longitude = ll [:, 0 :1 ]
324324 latitude = ll [:, 1 :2 ]
325325
@@ -332,25 +332,24 @@ def transform_non_affine(self, ll):
332332 x = (2.0 * sqrt2 ) * (cos_latitude * np .sin (half_long )) / alpha
333333 y = (sqrt2 * np .sin (latitude )) / alpha
334334 return np .concatenate ((x , y ), 1 )
335- transform_non_affine .__doc__ = Transform .transform_non_affine .__doc__
336335
337336 def inverted (self ):
337+ # docstring inherited
338338 return HammerAxes .InvertedHammerTransform (self ._resolution )
339- inverted .__doc__ = Transform .inverted .__doc__
340339
341340 class InvertedHammerTransform (_GeoTransform ):
342341
343342 def transform_non_affine (self , xy ):
343+ # docstring inherited
344344 x , y = xy .T
345345 z = np .sqrt (1 - (x / 4 ) ** 2 - (y / 2 ) ** 2 )
346346 longitude = 2 * np .arctan ((z * x ) / (2 * (2 * z ** 2 - 1 )))
347347 latitude = np .arcsin (y * z )
348348 return np .column_stack ([longitude , latitude ])
349- transform_non_affine .__doc__ = Transform .transform_non_affine .__doc__
350349
351350 def inverted (self ):
351+ # docstring inherited
352352 return HammerAxes .HammerTransform (self ._resolution )
353- inverted .__doc__ = Transform .inverted .__doc__
354353
355354 def __init__ (self , * args , ** kwargs ):
356355 self ._longitude_cap = np .pi / 2.0
@@ -369,6 +368,7 @@ class MollweideTransform(_GeoTransform):
369368 """The base Mollweide transform."""
370369
371370 def transform_non_affine (self , ll ):
371+ # docstring inherited
372372 def d (theta ):
373373 delta = (- (theta + np .sin (theta ) - pi_sin_l )
374374 / (1 + np .cos (theta )))
@@ -401,15 +401,15 @@ def d(theta):
401401 xy [:, 1 ] = np .sqrt (2.0 ) * np .sin (aux )
402402
403403 return xy
404- transform_non_affine .__doc__ = Transform .transform_non_affine .__doc__
405404
406405 def inverted (self ):
406+ # docstring inherited
407407 return MollweideAxes .InvertedMollweideTransform (self ._resolution )
408- inverted .__doc__ = Transform .inverted .__doc__
409408
410409 class InvertedMollweideTransform (_GeoTransform ):
411410
412411 def transform_non_affine (self , xy ):
412+ # docstring inherited
413413 x = xy [:, 0 :1 ]
414414 y = xy [:, 1 :2 ]
415415
@@ -420,11 +420,10 @@ def transform_non_affine(self, xy):
420420 lat = np .arcsin ((2 * theta + np .sin (2 * theta )) / np .pi )
421421
422422 return np .concatenate ((lon , lat ), 1 )
423- transform_non_affine .__doc__ = Transform .transform_non_affine .__doc__
424423
425424 def inverted (self ):
425+ # docstring inherited
426426 return MollweideAxes .MollweideTransform (self ._resolution )
427- inverted .__doc__ = Transform .inverted .__doc__
428427
429428 def __init__ (self , * args , ** kwargs ):
430429 self ._longitude_cap = np .pi / 2.0
@@ -453,6 +452,7 @@ def __init__(self, center_longitude, center_latitude, resolution):
453452 self ._center_latitude = center_latitude
454453
455454 def transform_non_affine (self , ll ):
455+ # docstring inherited
456456 longitude = ll [:, 0 :1 ]
457457 latitude = ll [:, 1 :2 ]
458458 clong = self ._center_longitude
@@ -470,14 +470,13 @@ def transform_non_affine(self, ll):
470470 y = k * (np .cos (clat )* sin_lat - np .sin (clat )* cos_lat * cos_diff_long )
471471
472472 return np .concatenate ((x , y ), 1 )
473- transform_non_affine .__doc__ = Transform .transform_non_affine .__doc__
474473
475474 def inverted (self ):
475+ # docstring inherited
476476 return LambertAxes .InvertedLambertTransform (
477477 self ._center_longitude ,
478478 self ._center_latitude ,
479479 self ._resolution )
480- inverted .__doc__ = Transform .inverted .__doc__
481480
482481 class InvertedLambertTransform (_GeoTransform ):
483482
@@ -487,6 +486,7 @@ def __init__(self, center_longitude, center_latitude, resolution):
487486 self ._center_latitude = center_latitude
488487
489488 def transform_non_affine (self , xy ):
489+ # docstring inherited
490490 x = xy [:, 0 :1 ]
491491 y = xy [:, 1 :2 ]
492492 clong = self ._center_longitude
@@ -502,14 +502,13 @@ def transform_non_affine(self, xy):
502502 (x * sin_c ) / (p * np .cos (clat )* cos_c - y * np .sin (clat )* sin_c ))
503503
504504 return np .concatenate ((lon , lat ), 1 )
505- transform_non_affine .__doc__ = Transform .transform_non_affine .__doc__
506505
507506 def inverted (self ):
507+ # docstring inherited
508508 return LambertAxes .LambertTransform (
509509 self ._center_longitude ,
510510 self ._center_latitude ,
511511 self ._resolution )
512- inverted .__doc__ = Transform .inverted .__doc__
513512
514513 def __init__ (self , * args , center_longitude = 0 , center_latitude = 0 , ** kwargs ):
515514 self ._longitude_cap = np .pi / 2
0 commit comments