LinkedEarth / Pyleoclim_util

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

Lipd Attribute Error with pyleo.utils.jsonutils.json_to_PyleoObj() #616

Open pgc2113 opened 1 month ago

pgc2113 commented 1 month ago

An AttributeError occurs when you convert a json file to PyleoObjct. I ran some wavelet coherence analyses using Pyleoclim and wanted to save the results as json. I tested converting the json file to PyleoObjct and it results in an AttributeError stating that module 'pyleoclim.core' has no attribute 'Lipd'.

To Reproduce (Generic Example) import pyleoclim as pyleo ts = pyleo.utils.load_dataset('SOI') pyleo.utils.jsonutils.PyleoObj_to_json(ts,'test.json') pyleo.utils.jsonutils.json_to_PyleoObj('test.json', 'Series') Expected behavior I would expect that the json file be converted to a pyleo.Series object, or in my specific case, a pyleo.Coherence object.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context N/A

khider commented 1 week ago

This module was originally developed to support the AI work on PaleoTS. Since the scope of this project has significantly changed, json utilities outside of the Series object is not supported.

Looking for someone who can take this one.