From cb2ac37aae50f54bb8f24b43ed6d5645e2913008 Mon Sep 17 00:00:00 2001 From: blnicho Date: Wed, 11 Dec 2024 17:25:24 -0700 Subject: [PATCH] Use raw strings to silence deprecation warnings --- gtep/gtep_solution.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtep/gtep_solution.py b/gtep/gtep_solution.py index 0cbe939..7fcf67c 100644 --- a/gtep/gtep_solution.py +++ b/gtep/gtep_solution.py @@ -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: @@ -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)