Deltares / hatyan

Harmonic tidal analysis and prediction
https://deltares.github.io/hatyan/
GNU General Public License v3.0
13 stars 2 forks source link

fix FutureWarning about parse_dates (pytest python 3.12) #271

Closed veenstrajelmer closed 4 months ago

veenstrajelmer commented 4 months ago
tests/test_metadata.py: 3 warnings
tests/test_timeseries.py: 23 warnings
  /home/runner/work/hatyan/hatyan/hatyan/timeseries.py:1427: FutureWarning: Support for nested sequences for 'parse_dates' in pd.read_csv is deprecated. Combine the desired columns with pd.to_datetime after parsing instead.
    data_pd_HWLW = pd.read_csv(filename, skiprows=skiprows,nrows=data_nrows, header=None, sep=';',

parse_dates is fixable, 15 hits of parse_dates in repos

veenstrajelmer commented 4 months ago

Fixed by https://github.com/Deltares/hatyan/commit/bca3ef950c6bfbf372fea205959eb7c1b60ba877