examples/basic_example/basic_example.py
Function main
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def main(dump_and_restore=False):
# For models that need a long time to optimise, saving and loading the
# EnergySystem might be advised. By default, we do not do this here. Feel
# free to experiment with this once you understood the rest of the code.
dump_results = restore_results = dump_and_restore