Skip to content

[Bug] minimal_degree_of_autonomy in constraints.csv not optional #780

@MaGering

Description

@MaGering

The parameter minimal_degree_of_autonomy in constraints.csv, which is a known_extra_parameter and has been implemented in this PR, should be set to its default value if not provided, according to @smartie2076 .

So far however, if not provided, the simulation exits with KeyError.

You can reproduce this

  1. setting EXECUTE_TESTS_ON on "master" in /tests/_constants.py,
  2. Removing the line with minimal_degree_of_autonomy as input parameter for example in /tests/benchmark_test_inputs/AE_grid_battery/csv_elements/constraints.csv and
  3. running the benchmark test pytest test_benchmark_scenarios.py.

Doing this you'll get:

E       KeyError: 'minimal_degree_of_autonomy'

../src/multi_vector_simulator/D2_model_constraints.py:92: KeyError

I've attached the full error message here: KeyError_DoA_mvs.txt

Checklist to make sure that the bug report ist complete:

  • OS: Linux - Ubuntu 20.04.1 and macOS - Mojave 10.14.6
  • Branch: dev, updated on 28. JAN. 2021, 14:43 MEZ
  • If applicable: Attach full error message
  • If applicable: Share screenshots/images of your problem
  • If applicable: Share used input data

Please mark above checkboxes as following:

  • Open
  • Done

❌ Checkbox is not applicable to this bug report

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions