proper typing and bundle first ordering
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user