diff --git a/.travis.yml b/.travis.yml index 6c60bf443..f434edf4e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/gwhat/meteo/dwnld_weather_data.py b/gwhat/meteo/dwnld_weather_data.py index 3072e460c..af6e84de8 100644 --- a/gwhat/meteo/dwnld_weather_data.py +++ b/gwhat/meteo/dwnld_weather_data.py @@ -623,8 +623,8 @@ def generate_html_table(self, cdf): min_year = cdf['Minimum Year'] max_year = cdf['Maximum Year'] - fields = ['Tmax<\sub>', 'Tmin<\sub>', 'Tmean<\sub>', - 'Ptot<\sub>'] + fields = ['Tmax', 'Tmin', 'Tmean', + 'Ptot'] html = """

diff --git a/gwhat/meteo/gapfill_weather_postprocess.py b/gwhat/meteo/gapfill_weather_postprocess.py index 01870b4ba..3eda8280f 100644 --- a/gwhat/meteo/gapfill_weather_postprocess.py +++ b/gwhat/meteo/gapfill_weather_postprocess.py @@ -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) diff --git a/gwhat/meteo/weather_viewer.py b/gwhat/meteo/weather_viewer.py index 83d5b6534..8184d3616 100644 --- a/gwhat/meteo/weather_viewer.py +++ b/gwhat/meteo/weather_viewer.py @@ -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() diff --git a/gwhat/projet/reader_projet.py b/gwhat/projet/reader_projet.py index 9d62f6b1a..3b762b281 100644 --- a/gwhat/projet/reader_projet.py +++ b/gwhat/projet/reader_projet.py @@ -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.") @@ -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.")