marinebon / py-dwc-viz

Python Package for data analysis and visualisation for Darwin Core data, with plug-and-play from providers like OBIS and GBIF.
https://marinebon.github.io/py-dwc-viz/
GNU General Public License v3.0
1 stars 1 forks source link

[fix] Removing deprecated API endpoint from `stats` and writing tests #8

Closed ayushanand18 closed 1 year ago

ayushanand18 commented 1 year ago

Overview

This PR aims to remove statistics/outliers from stats module, and write tests for all existing modules.

Thanks!

ayushanand18 commented 1 year ago

I'm not sure why the actions workflow ran on Ubuntu but not on other environments. Maybe its related to plotly fig.show() because only that test didn't run before getting cancelled.

ayushanand18 commented 1 year ago

Update: Finally, the tests have passed. Perhaps the windows and macos environment function differently than ubuntu when opening matplotlib plots and this was causing them to run indefinitely before waiting for the plot to close. Instead of opening the plots in the function call, we are now returning a matplotlib Axes object so that users can open on their own.