Skip to content

Loading a cfg_dep from a batch.mat is not working #41

Open
@balbasty

Description

@balbasty

I have saved a cfg_dep that is displayed like this in matlab:

dep = 
 
cfg_dep object: 1-by-1
           tname: 'Select GCM_*.mat'
    tgt_exbranch: [0×0 struct]
       tgt_input: [0×0 struct]
        tgt_spec: {[1×2 struct]}
          jtsubs: [0×0 struct]
           sname: 'Specify group: GCM mat File(s)'
    src_exbranch: [1×10 struct]
      src_output: [1×1 struct]

I then load it and display it in spm-python:

In [1]: from spm import Runtime

In [2]: dep = Runtime.call('load', 'dep.mat').dep
Initializing Matlab Runtime...
WARNING: package sun.awt.X11 not in java.desktop
WARNING: package sun.awt.X11 not in java.desktop

In [3]: dep
Out[3]: <spm.__matlabbatch.cfg_dep.cfg_dep at 0x1659e87c0>

In [4]: Runtime.call('disp', dep, nargout=0)
cfg_dep object: 1-by-1
           tname: 'Target'
    tgt_exbranch: [0x0 struct]
       tgt_input: [0x0 struct]
        tgt_spec: {}
          jtsubs: [0x0 struct]
           sname: [1x1 struct]
    src_exbranch: [0x0 struct]
      src_output: [0x0 struct]

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions