ENH: create FlightDataImporter class#474
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #474 +/- ##
===========================================
+ Coverage 71.16% 71.30% +0.14%
===========================================
Files 55 56 +1
Lines 9279 9370 +91
===========================================
+ Hits 6603 6681 +78
- Misses 2676 2689 +13
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
To see an example of the new class being used, see this branch: https://github.com/RocketPy-Team/RocketPy/tree/enh/add-juno3-example |
giovaniceotto
left a comment
There was a problem hiding this comment.
Great addition @Gui-FernandesBR! Can't wait to start using this more!
In fact, I hope we get a similar version that works directly with CSV files and other file formats common for rocket data loggers. I'll reach out to the community to see what kind of files we should support in a more long term scope.
I was pretty close to approving this PR as is, however, I believe I can help improve the implementation just a bit with two comments:
- Prefer a more explicit file name:
data_frame_to_flight.py - Avoid importing pandas, since it is a big module and will slow down importing this module. When you analyze the code, you really don't need pandas at all, even though you are working with pandas directly (Python is weird...)
|
For future reference... Something that is getting into my nerves is that sometimes the flight data is separated into different files. This may cause differences in the time steps and others. I guess that an easy solution would be converting the current private method Example: |
|
@MateusStano , I'd like to have a discussion on the architecture of this class and the future others that will interact with this. Let's please find a time to review this together. |
MateusStano
left a comment
There was a problem hiding this comment.
So overall it seems the user needs two things to use this class:
1 - A file with data in a valid format
2 - A dictionary mapping his data to flight values
I would say that makes a lot of sense, we just need a lot of documentation to support these requirements
|
Also, missing docs on all methods here, but I understand if you want to do that later |
bddce53 to
471c133
Compare
181b773 to
7b7b9f9
Compare
|
@RocketPy-Team/code-owners I believe we are ready for a review now. |
|
Please take a look at #513 to see an example of this class being used. |
What do you mean by "proper documentation"? |
My bad, I meant to delete that srry |
8b0bcb5 to
181c0cf
Compare

Pull request type
Checklist
black rocketpy/ tests/) has passed locallypytest --runslow) have passed locallyCurrent behavior
See issue #284 .
New behavior
I created this
DataFrameToFlightclass that I'd like to discuss before going to develop. I'm still struggling to find the best architecture for this, but at least it is a first step.Breaking change