Skip to content

Commit 59ce33f

Browse files
committed
FIX: remove SINDyPI conditionals from DiscreteSINDy.print()
1 parent 37feb2c commit 59ce33f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pysindy/_core.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -858,10 +858,7 @@ def print(self, precision=3, **kwargs):
858858
**kwargs: Additional keyword arguments passed to the builtin print function
859859
"""
860860
eqns = self.equations(precision, discrete_time=True)
861-
if sindy_pi_flag and isinstance(self.optimizer, SINDyPI):
862-
feature_names = self.get_feature_names()
863-
else:
864-
feature_names = self.feature_names
861+
feature_names = self.feature_names
865862
for i, eqn in enumerate(eqns):
866863
names = f"({feature_names[i]})[k+1]"
867864
print(f"{names} = {eqn}", **kwargs)

0 commit comments

Comments
 (0)