Skip to content

Commit

Permalink
minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasWeise committed Dec 22, 2024
1 parent 68c9648 commit 43c9054
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions moptipy/evaluation/end_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from math import inf, isfinite
from typing import Any, Callable, Final, Generator, Iterable, cast

from pycommons.ds.sequences import reiterable
from pycommons.io.console import logger
from pycommons.io.csv import (
CSV_SEPARATOR,
Expand Down Expand Up @@ -590,6 +591,7 @@ def __init__(self, data: Iterable[EndResult],
:param data: the data
:param scope: the prefix to be pre-pended to all columns
"""
data = reiterable(data)
super().__init__(data, scope)
no_encoding: bool = True
no_max_fes: bool = True
Expand Down
3 changes: 1 addition & 2 deletions moptipy/evaluation/end_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -1014,9 +1014,8 @@ def __init__(self, data: Iterable[EndStatistics],
:param scope: the prefix to be pre-pended to all columns
:param data: the data to write
"""
super().__init__(data, scope)

data = reiterable(data)
super().__init__(data, scope)
checker: int = 127
has_algorithm: bool = False
has_instance: bool = False
Expand Down
2 changes: 1 addition & 1 deletion moptipy/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
from typing import Final

#: the version string of `moptipy`
__version__: Final[str] = "0.9.137"
__version__: Final[str] = "0.9.138"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[build-system]
requires = ["setuptools>=75.5.0"]
requires = ["setuptools>=75.6.0"]
build-backend = "setuptools.build_meta"

0 comments on commit 43c9054

Please sign in to comment.