BUG: fix get_controller_observed_variables in the air brakes examples
#551
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull request type
Checklist
black rocketpy/ tests/) has passed locallypytest --runslow) have passed locallyCHANGELOG.mdhas been updated (if relevant)Current behavior
Since this commit (4ee4c7d#diff-a2ba60171d218c6b07372fae8759f8b235b7aa40006c08afef14b96c13d37902), the method
Flight.get_controller_observed_variablesis no longer a cached property and therefore cannot be iterated. This generates the following error when building the documentation:Cell raised uncaught exception: --------------------------------------------------------------------------- TypeError Traceback (most recent call last) Cell In[5], line 5 1 import matplotlib.pyplot as plt 3 time_list, deployment_level_list, drag_coefficient_list = [], [], [] ----> 5 for time, deployment_level, drag_coefficient in test_flight.get_controller_observed_variables: 6 time_list.append(time) 7 deployment_level_list.append(deployment_level) TypeError: 'method' object is not iterableNew behavior
Breaking change
Additional information