Skip to content

Commit

Permalink
Use raw strings to silence deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
blnicho committed Dec 12, 2024
1 parent 927a404 commit cb2ac37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gtep/gtep_solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ def _expressions_plot_workhorse(

for this_key in upper_level_dict:
level_period_number = int(
re.split("\[|\]", this_key.split(level_key)[1])[1]
re.split(r"\[|\]", this_key.split(level_key)[1])[1]
)
vals_dict.setdefault(level_period_number, {})
for this_val_key in keys_of_vals_of_interest:
Expand Down Expand Up @@ -726,7 +726,7 @@ def _level_plot_workhorse(
level_period_dict = {}
# cut out which dispatch period this is
level_period_number = int(
re.split("\[|\]", this_key.split(level_key)[1])[1]
re.split(r"\[|\]", this_key.split(level_key)[1])[1]
)
# print(level_period_number)

Expand Down

0 comments on commit cb2ac37

Please sign in to comment.