Add ability to add features to existing track without retracking#461
Add ability to add features to existing track without retracking#461freemansw1 wants to merge 35 commits intotobac-project:RC_v1.6.xfrom
Conversation
…not working, unfortunately.
…d to do some tests with real data, though.
# Conflicts: # tobac/tracking.py
|
I should have noted that I put in a good bit of effort to refactor the primary tracking function to make it less of a monolith. I'm not sure I succeeded there, but it is a bit cleaner now. |
Linting results by Pylint:Your code has been rated at 8.36/10 (previous run: 8.37/10, -0.01) |
|
Nice work! I’ll try and start reviewing this next week. Does this include variable dt capability as well? |
Inherently, yes it does. It would be good to add a wrapper that automagically does this, though. Would be good to get as part of 1.6 (or perhaps a 1.5.5). A nice feature for folks. |
|
okay I'm looking into the codecov failure. It seems to be a real failure, but only when running coverage, which is just frankly bizarre. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## RC_v1.6.x #461 +/- ##
=============================================
+ Coverage 64.86% 65.78% +0.92%
=============================================
Files 27 27
Lines 4047 4270 +223
=============================================
+ Hits 2625 2809 +184
- Misses 1422 1461 +39
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This seems to be a problem with |
|
something is wrong with the linting CI; GitHub isn't pulling the newest version. |
|
Ran into this bug while testing: I'll have a look deeper into what is going on in the morning |
|
Ok, so the issue I'm encountering is that on line 820, the result of is 2 for every row. I'll have to dig a bit deeper into why this is occurring. Do you have an example of applying the append_tracks method to real data so I can see if I'm using it correctly? |
|
Moving this back to draft as there are a number of open questions and things to work on here. |
…s_for_time # Conflicts: # .github/workflows/check_notebooks.yml # .github/workflows/pylint.yml # environment-examples.yml # tobac/tracking.py
…s_for_time # Conflicts: # tobac/tracking.py
# Conflicts: # tobac/tracking.py
…her than pandas equal; fixed tracking to work for append.
|
Moved back to ready to review. Looks like I got all the bugs. Seems that the primary bug was that I was giving trackpy the current (time t) velocities but displaced at the previous (time t-1) time. |
|
Outstanding Issues:
|
This new function (and its various support functions) is designed to allow the user to append a newly detected feature DataFrame to an existing set of tracks. This (should) work with all existing tobac tracking options, except memory due to an upstream issue I've documented here: soft-matter/trackpy#776 .
I have added docs, but haven't yet added a notebook. I'd like to do this before this function is merged, but wanted to start the discussion now.