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

Implement high level trait computation methods #53

Open
talmo opened this issue Aug 17, 2023 · 0 comments
Open

Implement high level trait computation methods #53

talmo opened this issue Aug 17, 2023 · 0 comments

Comments

@talmo
Copy link
Contributor

talmo commented Aug 17, 2023

With #51 (and after #52 is addressed), it will be extremely convenient to have a high level method that can just take a list of paths, automatically infer the appropriate pipeline to use and run it in batch using the compute_batch_traits method.

This function can go in the pipeline_traits module and be called compute_traits (outside of the class) for convenience so you can do something like:

from sleap_roots import compute_traits

plant_filenames = ["a.h5", "b.h5", "c.h5"]

all_traits = compute_traits(plant_filenames, write_individual_csvs=True, write_csv=True, csv_filename="all_traits.csv")
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

No branches or pull requests

1 participant