Skip to content

Commit

Permalink
Remove trait name as a requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
rafelafrance committed Apr 17, 2024
1 parent ea2f111 commit cfb9583
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion traiter/pylib/pipes/trait.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def relabel_ent(self, ent, old_label):
if new_label:
relabel_entity(ent, new_label)
label = new_label
ent._.trait.trait = new_label
ent._.trait._trait = new_label

return label

Expand Down
2 changes: 1 addition & 1 deletion traiter/pylib/rules/habitat.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def labeled_match(cls, ent):
break
habitat = " ".join(ent[i:].text.split())
trait = super().from_ent(ent, habitat=habitat)
trait.trait = "habitat"
trait._trait = "habitat"
return trait


Expand Down

0 comments on commit cfb9583

Please sign in to comment.