Skip to content

Commit 382fa33

Browse files
authored
fix iterator
1 parent 2ae4b6a commit 382fa33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RATapi/utils/orso.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def __init__(self, filepath: Union[str, Path], absorption: bool = False):
3737
if len(names) > len(list(set(names))):
3838
for i, data in enumerate(datasets):
3939
if data.name in names[:i]:
40-
data.name += f"-{name_counts[data.name]}"
40+
data.name += f"-{next(name_counts[data.name])}"
4141
self.data = ClassList(datasets)
4242
self.samples = [
4343
orso_model_to_rat(dataset.info.data_source.sample.model, absorption=absorption) for dataset in ort_data

0 commit comments

Comments
 (0)