Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR: Fix DeprecationWarning: invalid escape sequence #235

Merged
merged 6 commits into from
Dec 12, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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