Skip to content

Commit

Permalink
Change traits included in csv
Browse files Browse the repository at this point in the history
  • Loading branch information
eberrigan committed Aug 31, 2023
1 parent 709c0d9 commit 9c5b5e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions sleap_roots/trait_pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ def define_traits(self) -> List[TraitDef]:
fn=get_root_widths_left_bases,
input_traits=["root_widths_package"],
scalar=False,
include_in_csv=True,
include_in_csv=False,
kwargs={},
description="Returns the left bases of matched roots used to calculate"
"the root widths.",
Expand All @@ -466,7 +466,7 @@ def define_traits(self) -> List[TraitDef]:
fn=get_root_widths_right_bases,
input_traits=["root_widths_package"],
scalar=False,
include_in_csv=True,
include_in_csv=False,
kwargs={},
description="Returns the right bases of matched roots used to calculate"
"the root widths.",
Expand Down Expand Up @@ -737,7 +737,7 @@ def define_traits(self) -> List[TraitDef]:
fn=get_network_length,
input_traits=["primary_length", "lateral_lengths"],
scalar=True,
include_in_csv=False,
include_in_csv=True,
kwargs={"monocots": False},
description="Scalar of all roots network length.",
),
Expand All @@ -755,7 +755,7 @@ def define_traits(self) -> List[TraitDef]:
fn=get_tip_ys,
input_traits=["primary_tip_pt"],
scalar=True,
include_in_csv=False,
include_in_csv=True,
kwargs={},
description="Y-coordinate of the primary root tip node.",
),
Expand Down
6 changes: 3 additions & 3 deletions tests/test_trait_pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ def test_dicot_pipeline(canola_h5, soy_h5):
soy_traits = pipeline.compute_plant_traits(soy)
all_traits = pipeline.compute_batch_traits([canola, soy])

assert canola_traits.shape == (72, 133)
assert soy_traits.shape == (72, 133)
assert all_traits.shape == (2, 1180)
assert canola_traits.shape == (72, 117)
assert soy_traits.shape == (72, 117)
assert all_traits.shape == (2, 1036)

0 comments on commit 9c5b5e0

Please sign in to comment.