question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide TableCollection.dump( ) method

See original GitHub issue

Currently to write out a table collection, you have to make it into a tree sequence first, which then just calls table_collection_dump() under the hood. Unless there’s a good reason not, it’d be convenient sometimes to dump the table collection directly.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jeromekellehercommented, Aug 15, 2018

I’ve had a look at this, and it’s trickier than you might imagine given the way the lifetimes of tables within a table collection are handled in Python at the moment. I think this will have to be resolved first with proper read-only access to tables that are owned by a tree sequence.

[clank clank clank]

That was the sound of me kicking this can down the road to 0.6.2…

1reaction
petrelharpcommented, Jul 9, 2018

Also, a method to load them. Currently, if you have a set of tables that are illegal - for instance, because they lack a Population table - there’s no easy way in python to load the tables, add the missing stuff, and then make a tree sequence out of them. I would have called this msprime.load_tables, but this is already taken.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dump and load table data using Data Admin Utilities
It is important to dump and reload data definitions and table contents while developing ... You can dump and load table data using:...
Read more >
Python API — Tskit manual
TableCollection.tree_sequence () ... Tree sequences are immutable, and provide methods for obtaining trees from the ... TableCollection.dump (file_or_path).
Read more >
PerformanceCounters.Dump Method (Microsoft.SqlServer ...
Dump in the Microsoft.SqlServer.Management. ... Dump Method. Reference ... Definition; Overloads; Dump(Boolean); Dump(String); Dump(String, Boolean) ...
Read more >
WiredTiger File Forensics Part 2: wt dump - Percona
How to print information directly from the raw WiredTiger files using wt dump, and how to get to the MongoDB binary data inside...
Read more >
TreeSequence in tskit - Rust - Docs.rs
pub fn dump_tables(&self) -> Result<TableCollection, TskitError> ... All implementation of this trait provided by tskit use an ISO 8601 format time stamp ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found