Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
balbasty opened this issue Mar 25, 2025 · 1 comment
Open

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

balbasty opened this issue Mar 25, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@balbasty
Copy link
Contributor

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]
@balbasty balbasty added the bug Something isn't working label Mar 25, 2025
@balbasty balbasty assigned balbasty and johmedr and unassigned balbasty Mar 25, 2025
@johmedr
Copy link
Collaborator

johmedr commented Mar 25, 2025

Oh, interesting, could you share the file you have?
We need to enable some debug logging in mpython_endpoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants