I noticed the following lines in the hour_simulation function (in hybrids.py and hybrids_wind.py):
battery_use = 0.0002 * soc
soc - 0.0002 * soc
It seems the second line does not modify soc (no assignment), so self-discharge is not actually applied to the battery state.
Was the intention to update SOC (e.g. soc -= 0.0002 * soc), or is self-discharge only meant to be tracked in battery_use?
Best wishes,
Stuart