Skip to content

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

@pgc2113

Description

@pgc2113

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):

  • OS: macOS
  • Browser: Google Chrome
  • Version: 129.0.6668.59
  • Python Version: 3.11.5
  • Pyleoclim Version: 1.1.0

Additional context
N/A

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions