Normann and Andreas
987bffe148
JSON files for test_class_optimize.py
...
Update test_class_optimize.py
added Skipped per default
Fix optimization test
Fix optimization test
2024-10-09 17:05:36 +02:00
Normann and Andreas
0526f2417b
Update README.md
...
clarify the None/Null/NaN values of the output.
2024-10-09 17:03:05 +02:00
Normann and Andreas
1e78abb074
convert np arrys to lists before changing
2024-10-08 18:55:51 +02:00
Normann and Andreas
dc8f2f94b8
revert check in test for ems
2024-10-08 18:55:51 +02:00
Normann and Andreas
62339a0e6c
set current hour value None in class_ems.py
2024-10-08 18:55:51 +02:00
Normann and Andreas
3050320607
remove unused function
...
replace_nan_with_none(data) is not needed anymore since we don't have any NaN values. Another 13% speed increase.
2024-10-08 18:55:51 +02:00
Normann and Andreas
03efff52d9
TypeGuard[float] added to isfloat
2024-10-08 07:53:07 +02:00
Normann and Andreas
56587305e0
README-DE Python req. pushed to 3.10
2024-10-08 07:53:07 +02:00
Normann and Andreas
4e0e363ba5
README.md Python req. pushed to 3.10
2024-10-08 07:53:07 +02:00
Normann and Andreas
76be16b06a
empty line added
2024-10-08 07:53:07 +02:00
Normann and Andreas
cbfd7c45c7
import sort#2
2024-10-08 07:53:07 +02:00
Normann and Andreas
b54b4f8228
sort imports
2024-10-08 07:53:07 +02:00
Normann and Andreas
290e6293f2
moved isfloat(num)
...
improved isfloat for case "None" and strings with surrounding whitespace and special types like +-inf.
2024-10-08 07:53:07 +02:00
Normann and Andreas
2613e71bda
remove isfloat()
...
function is not used here
2024-10-08 07:53:07 +02:00
Normann and Andreas
a16490523d
fixed optimize test
...
fixed first our values for optimize test
2024-10-06 15:20:37 +02:00
Normann and Andreas
fb59c9dd14
fixed_seed for single_test_optimization
...
sets the seed for random to a fixed value to be able to compare results.
Value chosen for obvious reason. Same value is used in the test case.
2024-10-06 15:20:37 +02:00
Normann and Andreas
27bab20606
Update test_class_ems.py
2024-10-06 14:35:11 +02:00
Normann and Andreas
a80d4c1901
cleanup class_ems.py
...
- type hints added
- translated to English
- reduced not needed function calls
improves optimization time by 50%
2024-10-06 14:35:11 +02:00
Normann and Daniel Molkentin
dd3363b714
test for class_optimize in PR #88
...
Test meant for class_optimize.
Will only work with PR #88 since the old class has no way to use a fixed random seed.
2024-10-05 23:54:05 +02:00
Normann and Andreas
fb1aa06ddd
Refactored class_optimize.py
...
- Optimized Imports: Removed unused imports and organized them.
- Refactored Code: Introduced split_individual function for clarity.
- Improved Efficiency: Enhanced penalty calculation and streamlined loops.
- Updated Evaluation Logic: Better handling of penalties in evaluate.
- Type Hints added
- fixed seed option added for automated tests
- verbose comment added, default False
Notes:
- isfloat is only used in flask_server.py
- start_hour is not used in this class
2024-10-05 08:50:23 +02:00
Normann and Andreas
1eed420131
bugfix visualize module
...
datetime.datetime.now() is incorrectly accessing the datetime class
2024-10-04 16:16:03 +02:00
Normann and Andreas
8595b91692
Update requirements.txt
2024-10-03 10:03:05 +02:00
Normann and Andreas
e5bfbe757a
Delete modules/class_battery_soc_predictor.py
2024-10-03 10:03:05 +02:00
NormannK and Andreas
8959bd8693
Update class_strompreis.py
...
initial clean up, translations, os.makedirs improved
2024-10-01 07:16:13 +02:00
NormannK and Andreas
922042ced1
Update class_sommerzeit.py
...
initial clean up. translations, minor changes
2024-10-01 07:12:58 +02:00
NormannK and Andreas
baa22e973d
Update class_load_corrector.py
...
initial clean up. translations, imports cleaned and sorted
2024-10-01 07:12:41 +02:00
NormannK and Andreas
c14a94e6f9
Update class_load_container.py
...
initial clean up, unused imports removed, translations, very minor code changes
2024-10-01 07:11:08 +02:00
NormannK and Andreas
cf3b610b72
Update class_load.py
...
initial clean up, unused imports removed, translations, minor error handling for file added
2024-10-01 07:10:47 +02:00
NormannK and Andreas
89e84b39e5
Update class_inverter.py
...
initial clean up, comments translated. no code changes
2024-10-01 07:07:31 +02:00
NormannK and Andreas
258267fad4
Update class_heatpump.py
...
initial clean up. comments translated, parameters pulled top the top
2024-10-01 07:05:55 +02:00
NormannK and Andreas
d1ab1d0184
Update class_akku.py
...
initial cleanup, translations, minimal code changes
2024-10-01 07:04:46 +02:00
NormannK and Andreas
362fb2221b
Update class_battery_soc_predictor.py
...
initial clean up. import sorted and unused removed, comments translated, commented debug functions removed
2024-10-01 07:02:14 +02:00
NormannK and Andreas
b9b6b16437
Update class_haushaltsgeraet.py
...
initial clean up, only translations
2024-10-01 06:56:37 +02:00
NormannK and drbacke
29315427f0
Update flask_server.py
...
first step of cleanup. only formatting and very minor code changes
To Do:
- implement proper config
- move parameters into config
- remove not needed commented code (idk which is useful)
- logic in has_no_empty_params is unnecessary complicated
2024-09-30 08:16:05 +02:00
NormannK and drbacke
c2254dc5ed
Update visualize.py
...
initial clean up, translations
2024-09-30 07:54:19 +02:00
NormannK and drbacke
a2770e8410
Update test.py
...
degree is a non-UTF-8 code. too risky to have that
2024-09-30 07:53:12 +02:00
NormannK and drbacke
ec996fe410
Update server_load_profile.py
...
- general clean up
- constants pulled to the top
- improved error handeling
2024-09-30 07:46:05 +02:00
NormannK and drbacke
1f01455825
restructure and optimization of class_optimize.py
...
- removed unused functions
- restructure code
-optimized parameters of optimization
2024-09-30 07:37:18 +02:00
NormannK and Daniel Molkentin
5d38a7c982
Update flask_server.py
...
- sorted and organized import section according to PEP 8 guidelines
- removed unused "import string"
- translated to english
2024-09-20 00:05:35 +02:00
NormannK and Daniel Molkentin
709211784b
Update test.py
...
- removed unused/duplicate imports
- organized parameters
- input values got rounded!
2024-09-20 00:05:08 +02:00