LinkedEarth / Pyleoclim_util

Python Package for the Analysis of Paleoclimate Data. Documentation at
https://pyleoclim-util.readthedocs.io
GNU General Public License v3.0
87 stars 33 forks source link

Time conversion flips the axis but not the actual time #605

Closed khider closed 1 month ago

khider commented 1 month ago

Describe the bug When converting from years to Ma (notebook in the PyleoclimPaper), the axis gets flipped but not the actual data.

To Reproduce Start with:

image

then

ms_obs = ms_obs.convert_time_unit('Ma')

Get:

image

The notebook is available at: https://github.com/LinkedEarth/PyleoclimPaper/tree/v0.4/MD%20Confrontation as the latest release at the time the bud was discovered with the newest version of Pyleoclim (v1.0.0).

Expected behavior Actual time conversion

khider commented 1 month ago

Fixed in https://github.com/LinkedEarth/Pyleoclim_util/commit/d97da49425d697db024b570c63dbccc5497f32cd