-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the caching module to core. Add an in memory cache that for caching function and method results during an energy management run (optimization run). Two decorators are provided for methods and functions. Improve the file cache store by load and save functions. Make EOS load the cache file store on startup and save it on shutdown. Add a cyclic task that cleans the cache file store from outdated cache files. Signed-off-by: Bobby Noelte <[email protected]>
- Loading branch information
Showing
25 changed files
with
1,516 additions
and
824 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
cachebox==4.4.2 | ||
numpy==2.2.2 | ||
numpydantic==1.6.7 | ||
matplotlib==3.10.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
"""Abstract and base classes for configuration.""" | ||
|
||
from typing import Any, ClassVar | ||
|
||
from akkudoktoreos.core.pydantic import PydanticBaseModel | ||
|
||
|
||
class SettingsBaseModel(PydanticBaseModel): | ||
"""Base model class for all settings configurations.""" | ||
|
||
pass | ||
# EOS configuration - set by ConfigEOS | ||
config: ClassVar[Any] = None |
Oops, something went wrong.