Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maurerle committed Nov 13, 2023
1 parent c5b5f21 commit cc74f6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assume/markets/base_market.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ def validate_registration(
Used to check if a participant is eligible to bid on this market
"""

# simple check that 1 MW can be bid at least
def requirement(unit):
return unit["unit_type"] != "power_plant" or abs(unit["max_power"]) >= 1
# simple check that 1 MW can be bid at least by powerplants
def requirement(unit: dict):
return unit.get("unit_type") != "power_plant" or abs(unit["max_power"]) >= 1

return all([requirement(info) for info in content["information"]])

Expand Down

0 comments on commit cc74f6d

Please sign in to comment.