Skip to content

Commit

Permalink
Fix trait definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
eberrigan committed Sep 13, 2023
1 parent 8a14f61 commit 0feee0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sleap_roots/trait_pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,7 @@ def define_traits(self) -> List[TraitDef]:
name="main_base_tip_dists",
fn=get_base_tip_dist,
input_traits=["main_base_pts", "main_tip_pts"],
scalar=True,
scalar=False,
include_in_csv=True,
kwargs={},
description="Straight-line distance(s) from the base(s) to the"
Expand All @@ -1192,7 +1192,7 @@ def define_traits(self) -> List[TraitDef]:
name="main_grav_indices",
fn=get_base_tip_dist,
input_traits=["main_base_pts", "main_tip_pts"],
scalar=True,
scalar=False,
include_in_csv=True,
kwargs={},
description="Straight-line distance(s) from the base(s) to the"
Expand Down
4 changes: 2 additions & 2 deletions tests/test_trait_pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ def test_younger_monocot_pipeline(rice_h5, rice_folder):
rice_traits = pipeline.compute_plant_traits(rice)
all_traits = pipeline.compute_batch_traits(series_all)

assert rice_traits.shape == (72, 117)
assert all_traits.shape == (2, 1036)
assert rice_traits.shape == (72, 104)
assert all_traits.shape == (2, 919)

0 comments on commit 0feee0b

Please sign in to comment.