Update optimize full-run (#238)

* Enable full-run in github workflow
This commit is contained in:
Dominique Lasserre
2024-12-12 14:37:46 +01:00
committed by GitHub
parent 9620efccf1
commit a5e637ab4c
6 changed files with 2272 additions and 854 deletions

View File

@@ -65,9 +65,7 @@ def test_optimize(
# Call the optimization function
ergebnis = opt_class.optimierung_ems(parameters=input_data, start_hour=start_hour, ngen=ngen)
# with open(f"new_{fn_out}", "w") as f_out:
# from akkudoktoreos.utils import NumpyEncoder
# json_data_str = NumpyEncoder.dumps(ergebnis)
# json.dump(json.loads(json_data_str), f_out, indent=4)
# f_out.write(ergebnis.model_dump_json(indent=4, exclude_unset=True))
# Assert that the output contains all expected entries.
# This does not assert that the optimization always gives the same result!