class_optimize: Timing Bugs fixed
class_numpy_encoder: JSON Encoder with Numpy support
visualize: AC / DC / Discharge
test_class_ems_2: New Test for AC / DC charging decision
* Dockerfile: Use non-root user, buildx cache, setup for readonly
container, remove unused apt deps.
For now don't install pip package and keep development flask server
as this will be replaced in the future (fastapi). Then a proper
webserver (e.g. nginx) should be used and the pip package can be
created and deployed just to the run-stage (with the webserver).
* docker-compose: Set to readonly (anonymous volumes declared in
Dockerfile should maintain all writable data).
Mount config.py for easier development. Should be replaced by
environment support for all config file variables.
* Remove unused runtime dependencies: mariadb, joblib, pytest,
pytest-cov.
* Move pytest-cov to dev dependencies.
* Add output_dir to config.py.
* Fix visualization_results.pdf endpoint.
* Update docs.
Add documentation infrastructure and some sample content.
Documentation is generated by sphinx using extensions to support
Markdown an restructuredText for simple documentation writing.
Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
Startup of the test server is detected by a scan on the server logging output to stdout.
Startup is now detected on the late log output.
Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
Previously tests did not run after merging.
This lead to incompatible changes being merged right after one another.
By running tests on main we will notice breaks earlier.
Other options would be to require every PR to rebase on main before merging.
This is known as requiring linear history and can be changed in the project settings.
Due to .gitignore directive files in data/ were ignored. Thus data was not moved to correct location by pr #122.
Add load_profiles.npz and remove gitignore directive.
Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
A test fixture to start the server and a first test case is added.
The fixture tries to assure that the server is installed and running.
If it is not installed the fixture uses pip to install it.
The server and the installation by pip is run bei the same Python
executable that also runs pytest.
The github workflow for pytest is adapted to install akkudoktor-eos.
Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
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>