Skip to content

Commit

Permalink
fixed a bug about getting result for multi-sample analysis.
Browse files Browse the repository at this point in the history
  • Loading branch information
tanliwei-coder committed Jan 15, 2025
1 parent 3985f46 commit 7de95c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stereo/core/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,8 @@ def __getitem__(self, key):
else:
current_scope_key = self._ms_data.generate_scope_key(self._ms_data.tl.scope)
if current_scope_key in self._ms_data.scopes_data:
return self._ms_data.scopes_data[current_scope_key].tl.result[key]
if key in self._ms_data.scopes_data[current_scope_key].tl.result:
return self._ms_data.scopes_data[current_scope_key].tl.result[key]
return dict.__getitem__(self, key)

def __contains__(self, key: object) -> bool:
Expand Down

0 comments on commit 7de95c9

Please sign in to comment.