proper typing and bundle first ordering

This commit is contained in:
Josh Burman
2022-04-27 15:46:23 +00:00
parent c7da2862b2
commit a919530cab
4 changed files with 19 additions and 8 deletions

View File

@ -46,3 +46,6 @@ class Bundle(BaseModel):
total += self.trf(solver_run.irt_model, target.theta)
return total
def ordered_items(self) -> List[Item]:
return sorted(self.items, key=lambda x: x.position)