oemof/oemof-solph

View on GitHub
examples/basic_example/basic_example.py

Summary

Maintainability
A
1 hr
Test Coverage

Function main has 46 lines of code (exceeds 25 allowed). Consider refactoring.
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
Severity: Minor
Found in examples/basic_example/basic_example.py - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status