Skip to content

Add methods to grow node and edge tables#126

Merged
bryo-han merged 4 commits intoHighlanderLab:mainfrom
LynxJinyangii:add-tables-on-pr122
Mar 23, 2026
Merged

Add methods to grow node and edge tables#126
bryo-han merged 4 commits intoHighlanderLab:mainfrom
LynxJinyangii:add-tables-on-pr122

Conversation

@LynxJinyangii
Copy link
Collaborator

No description provided.

@codecov
Copy link

codecov bot commented Mar 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@gregorgorjanc
Copy link
Member

Comment on lines +38 to +42
- `TableCollection$node_table_add_row()` now maps `population = NULL` and
`individual = NULL` to `-1` (`TSK_NULL`) for R-level convenience.
- `rtsk_edge_table_add_row()` and `TableCollection$edge_table_add_row()` now
validate `left`/`right` more explicitly (non-`NA`, finite, and `left < right`)
and require scalar `parent`/`child` IDs.
Copy link
Member

Choose a reason for hiding this comment

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

I would drop this in the NEWS.md - this belongs into the function documentation

@gregorgorjanc gregorgorjanc changed the title Add tables on pr122 Add methods to grow node and edge tables Mar 16, 2026
@hannesbecher
Copy link

Hi @LynxJinyangii, would you mind updating the tests so they cover those Rcpp::stop lines that are not covered ATM? A shorten the NEWS file as GG suggested? Many thanks!

@LynxJinyangii
Copy link
Collaborator Author

Fixed as suggested, thanks.

@bryo-han bryo-han merged commit f9dd246 into HighlanderLab:main Mar 23, 2026
8 checks passed
@bryo-han
Copy link
Contributor

ARG... I missed the squashing again. Next time!

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.

4 participants