pangaea-data-publisher / pangaeapy

PANGAEA Python Client
https://www.pangaea.de/
GNU General Public License v3.0
29 stars 18 forks source link

Date/Time field not correctly read anymore #53

Closed messiem closed 11 months ago

messiem commented 11 months ago

I have been reading a dataset (https://doi.org/10.1594/PANGAEA.937536) that includes a Date/Time column. Until recently (at least Aug 30, 2023 but I believe I ran the notebook since), it was correctly read as 2008-04-23T17:15:00 (for the first data point). Now, only the year appears to be read. To reproduce the issue: pandata = pg.PanDataSet('doi:10.1594/PANGAEA.937536') then print(pandata.data['Date/Time'][0]) (returns 2008-01-01 00:00:00).

Thank you!!

huberrob commented 11 months ago

Thanks for the hint, I fixed this in the latest commit If you do not want to wait for an updated version on pypi, please replace the file pandataset.py in your local environment and it should hopefully correctly work .

messiem commented 11 months ago

I just tested it and it works, thank you very much for such a quick fix!