-
Notifications
You must be signed in to change notification settings - Fork 26
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
First performance module POC for using vectors on cruise climb model #180
base: master
Are you sure you want to change the base?
Conversation
Issues
======
- Added 2
Complexity increasing per file
==============================
- src/fastoad/models/performances/mission.py 1
Clones added
============
- src/fastoad/models/performances/breguet.py 1
- src/fastoad/models/performances/mission.py 1
See the complete overview on Codacy |
@@ -0,0 +1,252 @@ | |||
""" |
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.
self.declare_partials("data:propulsion:altitude", "*", method="fd") | ||
self.declare_partials("data:propulsion:mach", "*", method="fd") | ||
|
||
def compute(self, inputs, outputs, discrete_inputs=None, discrete_outputs=None): |
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.
Issue found: Method could be a function
Codecov Report
@@ Coverage Diff @@
## master #180 +/- ##
==========================================
+ Coverage 91.32% 91.52% +0.19%
==========================================
Files 172 173 +1
Lines 6113 6254 +141
Branches 467 467
==========================================
+ Hits 5583 5724 +141
Misses 439 439
Partials 91 91
Continue to review full report at Codecov.
|
This draft PR is a proof of concept for using vectors for trajectories in the performance module. This has been achieved only for the cruise segment of the mission:
The distance step is constant and determined with respect to the number of flight points and cruise distance, resulting in a variable time step.