Skip to content

Make TableCollection methods more findable - #756

Merged
mergify[bot] merged 2 commits into
tskit-dev:masterfrom
petrelharp:table_toc
Aug 10, 2020
Merged

mergify[bot] merged 2 commits into
tskit-dev:masterfrom
petrelharp:table_toc

Conversation

@petrelharp

Copy link
Copy Markdown
Contributor

I was having trouble finding the TableCollection methods, so I added a summary of these methods, and rearranged the structure of the docs about Tables to be - I think? - more intuitive. Previously, the docs talked through each of the tables and eventually got to table collections; now it goes "you already know about tree sequences: most of those operations are actually on table collections; and ok, here's how the underlying tables work".

Suggestions welcome.

@petrelharp
petrelharp requested a review from hyanwong August 8, 2020 16:14
@molpopgen

Copy link
Copy Markdown
Member

I like the auto summary. One thing that has been bugging me is the description of mutability. If you have a tree sequence, calling the functions that change it do not raise an error (like the various add_row methods). Rather, they just silently do nothing.

@petrelharp

Copy link
Copy Markdown
Contributor Author

Rather, they just silently do nothing.

Oh, that seems fixable, with some python magic.

@codecov

codecov Bot commented Aug 8, 2020 •

Copy link
Copy Markdown

Codecov Report

Merging #756 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #756   +/-   ##
=======================================
  Coverage   87.69%   87.69%           
=======================================
  Files          24       24           
  Lines       19387    19387           
  Branches     3640     3640           
=======================================
  Hits        17001    17001           
  Misses       1297     1297           
  Partials     1089     1089           
Flag Coverage Δ
#c_tests 85.27% <ø> (ø)
#python_c_tests 90.16% <ø> (ø)
#python_tests 99.02% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
python/tskit/_version.py 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e940ebe...2bfd04b. Read the comment docs.

@jeromekelleher jeromekelleher left a comment

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.

LGTM, just need to change the section label please.

Comment thread docs/python-api.rst Outdated
:members:


.. _sec_tables_docs:

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.

Can we change the lable to sec_tables_api_tables for consistency please? I've tried to make it reasonably consistent elsewhere (but not entirely successfully). The current label doesn't really fit with any conventions though.

@jeromekelleher

Copy link
Copy Markdown
Member

One thing that has been bugging me is the description of mutability. If you have a tree sequence, calling the functions that change it do not raise an error (like the various add_row methods). Rather, they just silently do nothing.

I've opened a new issue for this @molpopgen, #760. Short version is, it's not that straightforward and we'll need to it properly at some point anyway.

@mergify
mergify Bot merged commit f787e1f into tskit-dev:master Aug 10, 2020
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