|
| 1 | +# pylint: disable=too-many-statements |
| 2 | + |
1 | 3 | from abc import ABC, abstractmethod |
2 | 4 |
|
3 | 5 | import matplotlib.pyplot as plt |
@@ -139,10 +141,6 @@ class _FinsPlots(_AeroSurfacePlots): |
139 | 141 | """Abstract class that contains all fin plots. This class inherits from the |
140 | 142 | _AeroSurfacePlots class.""" |
141 | 143 |
|
142 | | - @abstractmethod |
143 | | - def draw(self, *, filename=None): |
144 | | - pass |
145 | | - |
146 | 144 | def airfoil(self): |
147 | 145 | """Plots the airfoil information when the fin has an airfoil shape. If |
148 | 146 | the fin does not have an airfoil shape, this method does nothing. |
@@ -200,10 +198,6 @@ class _FinPlots(_AeroSurfacePlots): |
200 | 198 | """Abstract class that contains all fin plots. This class inherits from the |
201 | 199 | _AeroSurfacePlots class.""" |
202 | 200 |
|
203 | | - @abstractmethod |
204 | | - def draw(self): |
205 | | - pass |
206 | | - |
207 | 201 | def airfoil(self): |
208 | 202 | """Plots the airfoil information when the fin has an airfoil shape. If |
209 | 203 | the fin does not have an airfoil shape, this method does nothing. |
@@ -259,7 +253,6 @@ def all(self): |
259 | 253 | class _TrapezoidalFinsPlots(_FinsPlots): |
260 | 254 | """Class that contains all trapezoidal fin plots.""" |
261 | 255 |
|
262 | | - # pylint: disable=too-many-statements |
263 | 256 | def draw(self, *, filename=None): |
264 | 257 | """Draw the fin shape along with some important information, including |
265 | 258 | the center line, the quarter line and the center of pressure position. |
@@ -388,8 +381,7 @@ def draw(self, *, filename=None): |
388 | 381 | class _TrapezoidalFinPlots(_FinPlots): |
389 | 382 | """Class that contains all trapezoidal fin plots.""" |
390 | 383 |
|
391 | | - # pylint: disable=too-many-statements |
392 | | - def draw(self): |
| 384 | + def draw(self, *, filename=None): |
393 | 385 | """Draw the fin shape along with some important information, including |
394 | 386 | the center line, the quarter line and the center of pressure position. |
395 | 387 |
|
@@ -509,7 +501,6 @@ def draw(self): |
509 | 501 | class _EllipticalFinsPlots(_FinsPlots): |
510 | 502 | """Class that contains all elliptical fin plots.""" |
511 | 503 |
|
512 | | - # pylint: disable=too-many-statements |
513 | 504 | def draw(self, *, filename=None): |
514 | 505 | """Draw the fin shape along with some important information. |
515 | 506 | These being: the center line and the center of pressure position. |
@@ -588,8 +579,7 @@ def draw(self, *, filename=None): |
588 | 579 | class _EllipticalFinPlots(_FinPlots): |
589 | 580 | """Class that contains all elliptical fin plots.""" |
590 | 581 |
|
591 | | - # pylint: disable=too-many-statements |
592 | | - def draw(self): |
| 582 | + def draw(self, *, filename=None): |
593 | 583 | """Draw the fin shape along with some important information. |
594 | 584 | These being: the center line and the center of pressure position. |
595 | 585 |
|
@@ -659,7 +649,6 @@ def draw(self): |
659 | 649 | class _FreeFormFinsPlots(_FinsPlots): |
660 | 650 | """Class that contains all free form fin plots.""" |
661 | 651 |
|
662 | | - # pylint: disable=too-many-statements |
663 | 652 | def draw(self, *, filename=None): |
664 | 653 | """Draw the fin shape along with some important information. |
665 | 654 | These being: the center line and the center of pressure position. |
@@ -734,7 +723,6 @@ def draw(self, *, filename=None): |
734 | 723 | class _FreeFormFinPlots(_FinPlots): |
735 | 724 | """Class that contains all free form fin plots.""" |
736 | 725 |
|
737 | | - # pylint: disable=too-many-statements |
738 | 726 | def draw(self, *, filename=None): |
739 | 727 | """Draw the fin shape along with some important information. |
740 | 728 | These being: the center line and the center of pressure position. |
|
0 commit comments