Skip to content

Fix track_id_offset bug #150

Merged
JoOkuma merged 8 commits intoroyerlab:mainfrom
yfukai:track_id_offset_test
Aug 23, 2025
Merged

Fix track_id_offset bug #150
JoOkuma merged 8 commits intoroyerlab:mainfrom
yfukai:track_id_offset_test

Conversation

@yfukai
Copy link
Copy Markdown
Contributor

@yfukai yfukai commented Aug 21, 2025

Setting track_id_offset in assign_track_ids seems to make the test fail. This PR intends to fix this issue.

@yfukai yfukai marked this pull request as ready for review August 21, 2025 01:10
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@c9d8dd0). Learn more about missing BASE report.
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #150   +/-   ##
=======================================
  Coverage        ?   88.03%           
=======================================
  Files           ?       49           
  Lines           ?     3243           
  Branches        ?      544           
=======================================
  Hits            ?     2855           
  Misses          ?      231           
  Partials        ?      157           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Member

@JoOkuma JoOkuma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @yfukai, thank you for this bug fix.
I left a few minor comments to improve readability, it's most related to things that were already there.

Comment thread src/tracksdata/functional/_rx.py
Comment thread src/tracksdata/functional/_rx.py Outdated
Comment thread src/tracksdata/functional/_rx.py Outdated
Comment thread src/tracksdata/functional/_rx.py Outdated
Comment thread src/tracksdata/functional/_rx.py Outdated
Comment thread src/tracksdata/functional/_rx.py Outdated
tracks_graph = rx.PyDiGraph(node_count_hint=n_tracks, edge_count_hint=n_tracks)
tracks_graph.add_nodes_from([None] * (n_tracks + 1))

tracks_graph.add_node(0)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yfukai, what do you think of removing the node 0 now that you have improved it so it can take arbitrary track_ids?

Suggested change
tracks_graph.add_node(0)

This might require a minor update to the tests.

yfukai and others added 6 commits August 23, 2025 06:50
Co-authored-by: Jordão Bragantini <jordao.bragantini@gmail.com>
Co-authored-by: Jordão Bragantini <jordao.bragantini@gmail.com>
Co-authored-by: Jordão Bragantini <jordao.bragantini@gmail.com>
Co-authored-by: Jordão Bragantini <jordao.bragantini@gmail.com>
Co-authored-by: Jordão Bragantini <jordao.bragantini@gmail.com>
Co-authored-by: Jordão Bragantini <jordao.bragantini@gmail.com>
@JoOkuma JoOkuma merged commit 58cdd0d into royerlab:main Aug 23, 2025
7 checks passed
@yfukai
Copy link
Copy Markdown
Contributor Author

yfukai commented Aug 23, 2025

@JoOkuma Hi sorry yesterday I didn't have time to update the tests. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants