Skip to content

Commit

Permalink
make regex patterns raw strings for escape syntax warning
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnVolk committed Mar 10, 2024
1 parent 8242c19 commit f4e6f1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fluxdataqaqc/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ def _get_units(plt_vars, units):
# multiple soil heat flux sensor time series plots
####
# keep user names for these in hover
g_re = re.compile('^[gG]_[\d+mean|corr]|G$')
g_re = re.compile(r'^[gG]_[\d+mean|corr]|G$')
g_vars = [
v for v in variables if g_re.match(v) and v in df.columns
]
Expand Down Expand Up @@ -1147,7 +1147,7 @@ def _get_units(plt_vars, units):
# multiple soil moisture time series plots
####
# keep user names for these in hover
theta_re = re.compile('theta_[\d+|mean]')
theta_re = re.compile(r'theta_[\d+|mean]')
theta_vars = [
v for v in variables if theta_re.match(v) and v in df.columns
]
Expand Down

0 comments on commit f4e6f1b

Please sign in to comment.