oemof / tespy

Thermal Engineering Systems in Python (TESPy). This package provides a powerful simulation toolkit for thermal engineering plants such as power plants, district heating systems or heat pumps.
https://tespy.readthedocs.io
MIT License
256 stars 80 forks source link

Remove old newton function and use newton_with_kwargs instead #484

Closed fwitte closed 5 months ago

fwitte commented 5 months ago

The convergence critereon for the newon helper algorithms needed to be updated to target values equal to zero. In case the target value is zero, the tolerance mode is set to absolute difference now. On top of that the old newton function was removed and now all parts of the code use the newton_with_kwargs function.

pep8speaks commented 5 months ago

Hello @fwitte! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 474:80: E501 line too long (90 > 79 characters) Line 505:80: E501 line too long (90 > 79 characters)

Line 41:80: E501 line too long (82 > 79 characters) Line 46:80: E501 line too long (84 > 79 characters) Line 51:80: E501 line too long (82 > 79 characters) Line 57:80: E501 line too long (85 > 79 characters)

Comment last updated at 2024-01-29 18:55:22 UTC