Skip to content

Commit

Permalink
[fix] Handle StopIteration error in iter_sequence_info_by_type method (
Browse files Browse the repository at this point in the history
…#3265)

* [fix] Handle StopIteration error in iter_sequence_info_by_type method

* [doc] Update CHANGELOG.md
  • Loading branch information
alberttorosyan authored Dec 6, 2024
1 parent 979efe0 commit 6feb6e7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- Fix aggregated metrics' computations (mihran113)
- Fix bug in RunStatusReporter raising non-deterministic RuntimeError exception (VassilisVassiliadis)
- Fix tag addition issue from parallel runs (mihran113)
- Handle `StopIteration` exception in iter_sequence_info_by_type method (alberttorosyan)

## 3.26.1 Dec 3, 2024
- Re-upload after PyPI size limitation fix
Expand Down
2 changes: 1 addition & 1 deletion aim/sdk/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ def iter_sequence_info_by_type(self, dtypes: Union[str, Tuple[str, ...]]) -> Ite
try:
self.meta_run_tree.first_key('typed_traces')
has_trace_type_info = True
except KeyError:
except (KeyError, StopIteration):
has_trace_type_info = False

if has_trace_type_info:
Expand Down
4 changes: 2 additions & 2 deletions troubleshooting/TROUBLESHOOTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Query time samples are collected by running sample basic queries.

The output of the script is a JSON file containing the statistics.

## How to Use the Command
### How to Use the Command

**Step 1:** Download the `base_project_statistics.py` is in your working directory.
**Step 2:** Execute the script on the repo of interest
Expand All @@ -22,7 +22,7 @@ python -m base_project_statistics --repo <path_to_repo>
```
The command generates a JSON file in the current working directory, containing statistics about the repository.

## Example JSON Output
### Example JSON Output

A typical output file contains the following information:

Expand Down

0 comments on commit 6feb6e7

Please sign in to comment.