Skip to content

Commit 83e021a

Browse files
author
Sigrid Tofte Thiis
committed
apply two-layer adaptation
1 parent 6adde9c commit 83e021a

12 files changed

Lines changed: 1098 additions & 408 deletions

File tree

loop_algorithm_to_python_adaptive.egg-info/SOURCES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ loop_algorithm_to_python_adaptive.egg-info/requires.txt
66
loop_algorithm_to_python_adaptive.egg-info/top_level.txt
77
loop_to_python_adaptive/__init__.py
88
loop_to_python_adaptive/api.py
9-
loop_to_python_adaptive/autosense_isf.py
9+
loop_to_python_adaptive/autosens_isf.py
1010
loop_to_python_adaptive/autotune_isf.py
1111
loop_to_python_adaptive/autotune_prep.py
1212
loop_to_python_adaptive/helpers.py
Lines changed: 29 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,30 @@
1-
from __future__ import annotations
1+
from .adaptive_manager import AdaptiveManager, AdaptiveState
2+
from .autotune import (
3+
run_autotune_isf_iterations,
4+
run_autotune_cr_iterations,
5+
run_autotune_basal_iterations,
6+
AutotuneConfig,
7+
)
8+
from .autosens_isf import (
9+
AutosensConfig,
10+
AutosensBuffer,
11+
AutosensPoint,
12+
compute_autosens,
13+
apply_autosens_to_isf,
14+
apply_autosens_to_basal,
15+
)
216

3-
import importlib
4-
from typing import Any
5-
6-
_upstream = importlib.import_module("loop_to_python_api")
7-
8-
__all__ = list(getattr(_upstream, "__all__", [n for n in dir(_upstream) if not n.startswith("_")]))
9-
10-
11-
def __getattr__(name: str) -> Any:
12-
return getattr(_upstream, name)
13-
14-
15-
def __dir__() -> list[str]:
16-
return sorted(set(__all__))
17+
__all__ = [
18+
'AdaptiveManager',
19+
'AdaptiveState',
20+
'run_autotune_isf_iterations',
21+
'run_autotune_cr_iterations',
22+
'run_autotune_basal_iterations',
23+
'AutotuneConfig',
24+
'AutosensConfig',
25+
'AutosensBuffer',
26+
'AutosensPoint',
27+
'compute_autosens',
28+
'apply_autosens_to_isf',
29+
'apply_autosens_to_basal',
30+
]
13.3 KB
Binary file not shown.
-6 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)