Can't reproduce failures locally
Opened this issue · 1 comments
Remi-Gau commented
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 commented
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.