Skip to content

Fail to run the notebook #8

@fzhu2e

Description

@fzhu2e

Hi, first thanks for the nice work on this topic.
I was trying to run through the notebook example_Su_etal2015.ipynb but got the error below.
It seems that the MATLAB session was not returning the correct type.
I know it has been years, but do you have an idea how to fix this? Thanks!

Starting MATLAB on ZMQ socket ipc:///tmp/pymatbridge-662a070a-85d8-4f2e-a081-7c3e6ac8db61
Send 'exit' command to kill the server
............MATLAB started and connected!
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-2-82f10c014ec8> in <module>()
      1 from hhtpywrapper.eemd import EEMD
      2 
----> 3 eemd_post_processing = EEMD(rate, 6.0, 100, num_imf=10, seed_no=4, post_processing=True)
      4 eemd_post_processing.get_oi()

~/.pyenv/versions/anaconda3-5.0.1/envs/py3.6/lib/python3.6/site-packages/hhtpywrapper-0.1.dev0-py3.6.egg/hhtpywrapper/eemd.py in __init__(self, signal, Nstd, NE, num_imf, run_CEEMD, max_sift, type_spline, modify_BC, rand_type, seed_no, check_signal, post_processing)
     12                             run_CEEMD, max_sift, type_spline, modify_BC,
     13                             rand_type, seed_no, check_signal)
---> 14         allmode = res['result'].T
     15         num_imf = allmode.shape[1]
     16         if post_processing == True:

AttributeError: 'str' object has no attribute 'T'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions