Skip to content
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

Can't reproduce failures locally #18

Open
Remi-Gau opened this issue Feb 15, 2021 · 1 comment
Open

Can't reproduce failures locally #18

Remi-Gau opened this issue Feb 15, 2021 · 1 comment

Comments

@Remi-Gau
Copy link
Contributor

I once in a while run into failures that I can't reproduce locally, on either Matlab, octave 4 or 5.

For example the following code fails with that error in CI (details below):

subject.(modality) = [subject.(modality), p]

failure: octave_base_value::convert_to_str_internal (): wrong type argument 'scalar struct'
  append_to_layout:52 (/github/workspace/+bids/+internal/append_to_layout.m)

https://github.com/bids-standard/bids-matlab/pull/124/checks?check_run_id=1902345529

I am trying to figure out what is going on but this becoming a bit of a headache. Any idea?

>> subject.(modality)

ans = 

  0×0 empty struct array with no fields.

>> p

p = 

  struct with fields:

    filename: 'sub-16_ses-mri_run-1_acq-hd_T1w.nii.gz'
         ext: '.nii.gz'
      suffix: 'T1w'
    entities: [1×1 struct]

>>  subject.(modality) = [subject.(modality), p]

subject = 

  struct with fields:

    anat: [1×1 struct]
@joergbrech
Copy link
Owner

I am sorry, I don't know what the problem is. If you are familiar with docker, you could see if you can consistently reproduce the failure in the docker container used by this action. Its based on Octave 4.2.2, but it will be updated soon, see #12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants