Skip to content

Commit

Permalink
Merge pull request #134 from daikitag/genetic
Browse files Browse the repository at this point in the history
CODE: Genetic value
  • Loading branch information
jeromekelleher committed Feb 12, 2024
2 parents 34dcec4 + 7a16cce commit 19454d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tstrait/genetic_value.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ def genetic_value(ts, trait_df):
if np.min(trait_id) != 0 or np.max(trait_id) != len(trait_id) - 1:
raise ValueError("trait_id must be consecutive and start from 0")

trait_df = trait_df.astype({"trait_id": int})

genetic = _GeneticValue(ts=ts, trait_df=trait_df)

genetic_result = genetic._run()
Expand Down

0 comments on commit 19454d6

Please sign in to comment.