Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Dataset superclass #89

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

New Dataset superclass #89

wants to merge 5 commits into from

Conversation

willdumm
Copy link
Contributor

@willdumm willdumm commented Nov 22, 2024

Addressing #55, I consolidating some branch lengths-related code into a new superclass BranchLengthDataset. I can't seem to find any other duplicated code.

The only opportunity for more code reuse would be to abstract methods like to that map over all attributes of the class and apply some function. This could be done in BranchLengthDataset using the vars builtin, but I think it might be more trouble than it's worth.

Will close #55

@willdumm willdumm marked this pull request as ready for review November 22, 2024 19:25
@willdumm willdumm requested a review from matsen November 22, 2024 19:30
@willdumm willdumm marked this pull request as draft November 22, 2024 20:58
Copy link
Contributor

@matsen matsen left a comment

Choose a reason for hiding this comment

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

👍

@matsen matsen marked this pull request as ready for review November 22, 2024 21:13
@willdumm
Copy link
Contributor Author

@matsen I also addressed #22, by moving some methods and functions around. All pre-existing functions and methods should work as they did before.

@willdumm willdumm linked an issue Nov 22, 2024 that may be closed by this pull request
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.

Consolidate branch length methods to new Dataset subclass Make the DNSM Crepe work like the SHM Crepe
2 participants