-
-
Notifications
You must be signed in to change notification settings - Fork 194
BUG: Fix the handling of reference pressure for older rpy files. #808
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -518,7 +522,9 @@ def __evaluate_flight_outputs(self, flight, sim_idx): | |||
) from e | |||
outputs_dict = outputs_dict | additional_exports | |||
|
|||
return json.dumps(outputs_dict, cls=RocketPyEncoder) + "\n" | |||
return ( | |||
json.dumps(outputs_dict, cls=RocketPyEncoder, **self._export_config) + "\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change had already been done by PR #679, however is was likely undone by merging errors at some point.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #808 +/- ##
===========================================
+ Coverage 79.11% 79.79% +0.67%
===========================================
Files 96 97 +1
Lines 11575 11899 +324
===========================================
+ Hits 9158 9495 +337
+ Misses 2417 2404 -13 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Pull request type
Checklist
make format
) has passed locallypytest tests -m slow --runslow
) have passed locally--runslow
needs BUG: LSODA solver not being detected correctly. #807 and Bug: Fix StochasticFlight time_overshoot None bug #805CHANGELOG.md
has been updated (if relevant)Current behavior
Currently, the introduction of
net_thrust
is the first addition of an attribute that impacts the behavior of the motor and flight classes. Therefore, the.rpy
of version 1.8.0 does not have this parameters, which should be handled.One notable point is that the tests are working as expected and caught this "file breaking change".
New behavior
This PR adds custom handling for the new attributes. Unfortunately, I did not find other ways beside manual handling (i.e. pinpointing in code the necessary attribute).
I am open to suggestions on how to deal with those parameter changes between older file versions.
Breaking change