Skip to content

Commit

Permalink
fix escape sequence warning
Browse files Browse the repository at this point in the history
  • Loading branch information
lindnemi committed Sep 19, 2024
1 parent 078c0be commit 620b507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/solve_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ def add_EQ_constraints(n, o, scaling=1e-1):
each node to produce on average at least 70% of its consumption.
"""
# TODO: Generalize to cover myopic and other sectors?
float_regex = "[0-9]*\.?[0-9]+"
float_regex = r"[0-9]*\.?[0-9]+"
level = float(re.findall(float_regex, o)[0])
if o[-1] == "c":
ggrouper = n.generators.bus.map(n.buses.country)
Expand Down

0 comments on commit 620b507

Please sign in to comment.