Skip to content

Commit 9d0bb82

Browse files
trchdiffeq
1 parent 29e4211 commit 9d0bb82

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
77

88
[project]
99
name = "spotpython"
10-
version = "0.22.2"
10+
version = "0.22.3"
1111
authors = [
1212
{ name="T. Bartz-Beielstein", email="tbb@bartzundbartz.de" }
1313
]
@@ -51,6 +51,7 @@ dependencies = [
5151
"tabulate",
5252
"tensorboard",
5353
"torch",
54+
"torchdiffeq",
5455
"torch-tb-profiler",
5556
"torchmetrics",
5657
"torchvision",

src/spotpython/utils/file.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def get_experiment_filename(PREFIX) -> str:
9595
return filename
9696

9797

98-
def load_result(PREFIX) -> None:
98+
def load_result(PREFIX) -> tuple:
9999
"""Loads the result from a pickle file with the name
100100
PREFIX + "_res.pkl".
101101
This is the standard filename for the result file,
@@ -105,6 +105,9 @@ def load_result(PREFIX) -> None:
105105
Args:
106106
PREFIX (str): Prefix of the experiment.
107107
108+
Returns:
109+
(spot_tuner, fun_control, design_control, surrogate_control, optimizer_control): Tuple of objects.
110+
108111
Examples:
109112
>>> from spotpython.utils.file import load_result
110113
>>> load_result("branin")

0 commit comments

Comments
 (0)