trackintel icon indicating copy to clipboard operation
trackintel copied to clipboard

CLN: Handle warnings in tests

Open bifbof opened this issue 2 years ago • 1 comments

When running the tests we get around 500 warnings, that will results in unstable code. We should try to handle as much errors as possible.

bifbof avatar Mar 17 '22 00:03 bifbof

Currently we have 28 + (4 postgis) warnings, the sources are:

  • 7 future warnings that geopandas will remove setting crs on geodataframes without geometry
  • (4) from using geopandas sql io without crs (that is what the test tests tho)
  • 21 warnings because of interaction between shapely and pandas apply, preprocessing/triplegs seem to be the cause of that. ~~(some fixed in #432)~~
  • ~~60 (26) DeprecationWarning for disutils, already fixed in later version of geopandas (https://github.com/geopandas/geopandas/pull/2084)~~ ~~- 1 (0) copy warning, is fixed in #393~~ ~~- 1 (0) warning in passing None to pytest, is fixed in #421~~

bifbof avatar May 10 '22 07:05 bifbof

The only warnings we currently have is a deprecation warning for the pyproj, nothing we could influence. So I'll close this issue.

bifbof avatar Jun 27 '23 23:06 bifbof