Skip to content

Commit

Permalink
Merge pull request #235 from jnsebgosselin/fix_inval_esc_sequence
Browse files Browse the repository at this point in the history
PR: Fix DeprecationWarning: invalid escape sequence
  • Loading branch information
jnsebgosselin committed Dec 12, 2018
2 parents 4e925d8 + 7f23b2d commit 6b1484c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ before_install:

install:
- python -m pip install -r requirements-dev.txt
- python -m pip install pytest-ordering==0.5.*
- sudo apt-get install cython3
- sudo apt-get install libhdf5-dev
- python setup.py build_ext --inplace
Expand Down
4 changes: 2 additions & 2 deletions gwhat/meteo/dwnld_weather_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,8 +623,8 @@ def generate_html_table(self, cdf):
min_year = cdf['Minimum Year']
max_year = cdf['Maximum Year']

fields = ['T<sub>max<\sub>', 'T<sub>min<\sub>', 'T<sub>mean<\sub>',
'P<sub>tot<\sub>']
fields = ['T<sub>max</sub>', 'T<sub>min</sub>', 'T<sub>mean</sub>',
'P<sub>tot</sub>']

html = """
<p align="center">
Expand Down
2 changes: 1 addition & 1 deletion gwhat/meteo/gapfill_weather_postprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ def plot_gamma_dist(Ymes, Ypre, fname, language='English'):
if label >= 1:
ylabels.append('%d' % label)
elif label <= 10**-3:
ylabels.append('$\mathdefault{10^{%d}}$' % np.log10(label))
ylabels.append('$\\mathdefault{10^{%d}}$' % np.log10(label))
else:
ylabels.append(str(label))
ax0.set_yticklabels(ylabels)
Expand Down
2 changes: 1 addition & 1 deletion gwhat/meteo/weather_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ def select_export_file(self, time_frame, savefilename=None):
app.setFont(ft)

fmeteo = ("..\\..\\Projects\\Example\\Meteo\\Output\\"
"MARIEVILLE (7024627)\MARIEVILLE (7024627)_1980-2017.out")
"MARIEVILLE (7024627)\\MARIEVILLE (7024627)_1980-2017.out")
wxdset = WXDataFrame(fmeteo)

w = WeatherViewer()
Expand Down
4 changes: 2 additions & 2 deletions gwhat/projet/reader_projet.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def add_wldset(self, name, df):
Add the water level dataset to the project hdf5 file.
A dataset name must be at least one charater long and can't contain
any of the following special characters: \ / : * ? " < > |
any of the following special characters: \\ / : * ? " < > |
"""
if not is_dsetname_valid(name):
raise ValueError("The name of the dataset is not valid.")
Expand Down Expand Up @@ -290,7 +290,7 @@ def add_wxdset(self, name, df):
Add the weather dataset to the project hdf5 file.
A dataset name must be at least one charater long and can't contain
any of the following special characters: \ / : * ? " < > |
any of the following special characters: \\ / : * ? " < > |
"""
if not is_dsetname_valid(name):
raise ValueError("The name of the dataset is not valid.")
Expand Down

0 comments on commit 6b1484c

Please sign in to comment.