facebookresearch / facebookresearch/fairo
self.memory.get_players_tagged doesn't work
- Dominant language
- Jupyter Notebook
- Stars
- 929
- Forks
- 123
- PR merge metrics
- No merged PRs in 30d
Description
## Type of Issue
Select the type of issue:
- [x] Bug report (to report a bug)
- [ ] Feature request (to request an additional feature)
- [ ] Tracker (I am just using this as a tracker)
- [ ] Refactor request
- [ ] Documentation Ask
## Description
trying to write a unit test for this but I cannot get this to work
## Steps to reproduce
```
self.memory = AgentMemory()
joe_memid = PlayerNode.create(self.memory, Player(10, "joey", Pos(1, 0, 1), Look(0, 0)))
self.memory.tag(joe_memid, "basketball_player")
ann_memid = PlayerNode.create(self.memory, Player(20, "ann", Pos(1, 0, 4), Look(0, 0)))
self.memory.tag(ann_memid, "swimmer")
# Test get_player_by_eid
assert self.memory.get_player_by_eid(10).name == "joey"
# Test get_player_by_name
assert self.memory.get_player_by_name("joey").eid == 10
# Test get_players_tagged
tags = ['basketball_player']
self.memory.get_players_tagged(tags)
Error: *** sqlite3.InterfaceError: Error binding parameter 0 - probably unsupported type.
```
Contributor guide
Assessment
This issue has not been assessed yet.