pysat / pysatSeasons

Seasonal Analysis routines for pysat
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

BUG/STY: update code to be compliant with numpy, pandas, and pysat development paths #17

Closed jklenzing closed 4 years ago

jklenzing commented 4 years ago

Description

Numpy 1.18.1 throws a TypeError when trying to interpret floats as integers. Updates the test routines to no longer pass through floats to numpy functions when integers are expected.

Pandas 2.0.0 will no longer carry around datetime, but asks users to import directly from datetime instead. Most of this was fixed in a previous pull, but the demo code was not updated at the time. This brings it in line with code updates.

Also updates demos to use custom.attach rather than custom.add in line with pysat 3.0.0 changes.

Type of change

How Has This Been Tested?

Running demo codes locally. Also, pytest on full package.

Checklist:

jklenzing commented 4 years ago

Updates to code: added the conda manager to Travis CI, removed the python 3.8 tests as cannot get pandas to work there.

jklenzing commented 4 years ago

Part of the conda update went straight to develop, but in a version that doesn't work. This fixes those bugs too.