Skip to content

Commit 5fe4625

Browse files
aZira371Gui-FernandesBR
authored andcommitted
MNT: pylint adjustments for new methods in function.py
- MNT: disables pylint unused private member for get_value_opt_grid as it is called upon dynamically by from_grid - MNT: disabled pylint too many statement for from_grid for now and added a to-do to refactor it into smaller methods/helper functions - MNT: updated .pylintrc to record Re as good name
1 parent 0b88906 commit 5fe4625

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.pylintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ good-names=FlightPhases,
229229
center_of_mass_without_motor_to_CDM,
230230
motor_center_of_dry_mass_to_CDM,
231231
generic_motor_cesaroni_M1520,
232+
Re, # Reynolds number
232233

233234
# Good variable names regexes, separated by a comma. If names match any regex,
234235
# they will always be accepted

rocketpy/mathutils/function.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ def __get_value_opt_nd(self, *args):
672672

673673
return result
674674

675-
def __get_value_opt_grid(self, *args):
675+
def __get_value_opt_grid(self, *args): # pylint: disable=unused-private-member
676676
"""Evaluate the Function using RegularGridInterpolator for structured grids.
677677
678678
This method is dynamically assigned in from_grid() class method.
@@ -4057,7 +4057,7 @@ def from_grid(
40574057
interpolation="linear_grid",
40584058
extrapolation="constant",
40594059
**kwargs,
4060-
):
4060+
): # pylint: disable=too-many-statements #TODO: Refactor this method into smaller methods
40614061
"""Creates a Function from N-dimensional grid data.
40624062
40634063
This method is designed for structured grid data, such as CFD simulation

0 commit comments

Comments
 (0)