Skip to content

node child _resize not found #122

Open
@kongdd

Description

@kongdd

I got an error when convert HANTS.m in the following MATLAB file.

https://cn.mathworks.com/matlabcentral/fileexchange/38841-matlab-implementation-of-harmonic-analysis-of-time-series--hants-

`kong@KONG:/mnt/c/Users/kongdd/m2cpp-master$ m2cpp HANTS.m
Traceback (most recent call last):
File "/usr/local/bin/m2cpp", line 99, in

matlab2cpp.main(args)  

File "/usr/local/lib/python2.7/dist-packages/matlab2cpp/init.py", line 230, in main
builder.project.translate(args)
File "/usr/local/lib/python2.7/dist-packages/matlab2cpp/node/frontend.py", line 171, in translate
backend.translate(self, opt)
File "/usr/local/lib/python2.7/dist-packages/matlab2cpp/node/backend.py", line 479, in translate
map(translate, node)
File "/usr/local/lib/python2.7/dist-packages/matlab2cpp/node/backend.py", line 493, in translate
translate_one(node, opt)
File "/usr/local/lib/python2.7/dist-packages/matlab2cpp/node/backend.py", line 557, in translate_one
value = value(node)
File "/usr/local/lib/python2.7/dist-packages/matlab2cpp/rules/cube.py", line 135, in Set
node = node.resize() # matlab to armadillo fix for cubes
File "/usr/local/lib/python2.7/dist-packages/matlab2cpp/node/frontend.py", line 289, in resize
backend.resize(self)
File "/usr/local/lib/python2.7/dist-packages/matlab2cpp/node/backend.py", line 234, in resize
if node["_resize"]:
File "/usr/local/lib/python2.7/dist-packages/matlab2cpp/node/frontend.py", line 404, in getitem
raise IndexError("node child "%s" not found" % i)
IndexError: node child "_resize" not found`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions