mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2025-04-19 08:55:15 +00:00
Adapt data to package directory structure.
Move static data to server package directory. Assure data/*.npz data is included in the server package. Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
This commit is contained in:
parent
7c13cb6e1c
commit
b9f65ef7db
Binary file not shown.
@ -30,6 +30,9 @@ optional-dependencies = {dev = { file = ["requirements-dev.txt"] }}
|
|||||||
where = ["src/"]
|
where = ["src/"]
|
||||||
include = ["akkudoktoreos", "akkudoktoreosserver", ]
|
include = ["akkudoktoreos", "akkudoktoreosserver", ]
|
||||||
|
|
||||||
|
[tool.setuptools.package-data]
|
||||||
|
akkudoktoreosserver = ["data/*.npz", ]
|
||||||
|
|
||||||
[tool.isort]
|
[tool.isort]
|
||||||
profile = "black"
|
profile = "black"
|
||||||
|
|
||||||
|
@ -123,7 +123,10 @@ def flask_gesamtlast_simple():
|
|||||||
###############
|
###############
|
||||||
# Load Forecast
|
# Load Forecast
|
||||||
###############
|
###############
|
||||||
file_path = os.path.join("data", "load_profiles.npz")
|
server_dir = os.path.dirname(os.path.realpath(__file__))
|
||||||
|
file_path = os.path.join(server_dir, "data", "load_profiles.npz")
|
||||||
|
|
||||||
|
print(file_path)
|
||||||
|
|
||||||
lf = LoadForecast(
|
lf = LoadForecast(
|
||||||
filepath=file_path, year_energy=year_energy
|
filepath=file_path, year_energy=year_energy
|
||||||
|
Loading…
x
Reference in New Issue
Block a user