Skip to content

Commit 521a8e8

Browse files
MNT: stocastic model repr method commented
1 parent b0b3ff6 commit 521a8e8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

rocketpy/stochastic/stochastic_model.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ def __init__(self, object, **kwargs):
7979
setattr(self, input_name, attr_value)
8080

8181
def __str__(self):
82+
# TODO: This method with a StochasticRocket with added motor, aero surfaces,
83+
# and/or parachutes is a mess right now
8284
s = ""
8385
for key, value in self.__dict__.items():
8486
if key.startswith("_"):
@@ -95,8 +97,9 @@ def __str__(self):
9597
s += f"{key}: {value_str}\n"
9698
return s.strip()
9799

98-
def __repr__(self):
99-
return f"{self.__class__.__name__}(object={self.object}, **kwargs)"
100+
# TODO: elaborate a short, concise version of the __str__ method
101+
# def __repr__(self):
102+
# return f"{self.__class__.__name__}(object={self.object}, **kwargs)"
100103

101104
def _validate_tuple(self, input_name, input_value, getattr=getattr):
102105
"""Validator for tuple arguments. Checks if input is in a valid format.

0 commit comments

Comments
 (0)