Skip to content

Commit

Permalink
Add back print_dict as a wrapper for show_config to avoid breaking us…
Browse files Browse the repository at this point in the history
…er interface changes.
  • Loading branch information
misi9170 committed Feb 5, 2025
1 parent bbb80e2 commit f41b88d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions floris/floris_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1651,6 +1651,14 @@ def show_config(self, full=False) -> None:
del config_dict["wake"]["wake_turbulence_parameters"]
print_nested_dict(config_dict)

def print_dict(self) -> None:
"""Print the FlorisModel dictionary.
"""
self.logger.warning(
"The print_dict() method has been deprecated."
" Please use the show_config() method instead."
)
self.show_config(full=True)

### Properties

Expand Down

0 comments on commit f41b88d

Please sign in to comment.