Skip to content

feat!: tskit error variants#138

Open
laggycomputer wants to merge 4 commits into
mainfrom
tskit-error-variants
Open

feat!: tskit error variants#138
laggycomputer wants to merge 4 commits into
mainfrom
tskit-error-variants

Conversation

@laggycomputer

Copy link
Copy Markdown
Collaborator

Closes #137.

@laggycomputer laggycomputer requested a review from molpopgen June 26, 2026 22:57

@molpopgen molpopgen 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.

This looks good overall. I'm not sure which order to merge PRs in -- #136 is still in play and makes big changes to this file and so we will have conflicts.

Comment thread src/from_tree_sequence.rs
@laggycomputer

Copy link
Copy Markdown
Collaborator Author

We can merge this second.

@molpopgen molpopgen 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.

Some of these are optional -- perhaps fewer enum variants is good?

Comment thread src/from_tree_sequence.rs

#[non_exhaustive]
#[derive(Debug)]
pub enum FromTreeSequenceError {

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.

All of the fns are try_from, so do we want the enum name to reflect that? The name is a bit long....

@laggycomputer laggycomputer Jun 27, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I think it's implied by "error" that we "tried".

Comment thread src/from_tree_sequence.rs
Comment thread src/from_tree_sequence.rs Outdated
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.

We need an Error type for the module handling tskit input

2 participants