Skip to content

Commit 43c9054

Browse files
committed
minor improvements
1 parent 68c9648 commit 43c9054

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

moptipy/evaluation/end_results.py

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from math import inf, isfinite
1919
from typing import Any, Callable, Final, Generator, Iterable, cast
2020

21+
from pycommons.ds.sequences import reiterable
2122
from pycommons.io.console import logger
2223
from pycommons.io.csv import (
2324
CSV_SEPARATOR,
@@ -590,6 +591,7 @@ def __init__(self, data: Iterable[EndResult],
590591
:param data: the data
591592
:param scope: the prefix to be pre-pended to all columns
592593
"""
594+
data = reiterable(data)
593595
super().__init__(data, scope)
594596
no_encoding: bool = True
595597
no_max_fes: bool = True

moptipy/evaluation/end_statistics.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1014,9 +1014,8 @@ def __init__(self, data: Iterable[EndStatistics],
10141014
:param scope: the prefix to be pre-pended to all columns
10151015
:param data: the data to write
10161016
"""
1017-
super().__init__(data, scope)
1018-
10191017
data = reiterable(data)
1018+
super().__init__(data, scope)
10201019
checker: int = 127
10211020
has_algorithm: bool = False
10221021
has_instance: bool = False

moptipy/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
from typing import Final
33

44
#: the version string of `moptipy`
5-
__version__: Final[str] = "0.9.137"
5+
__version__: Final[str] = "0.9.138"

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[build-system]
2-
requires = ["setuptools>=75.5.0"]
2+
requires = ["setuptools>=75.6.0"]
33
build-backend = "setuptools.build_meta"

0 commit comments

Comments
 (0)