Skip to content

Commit

Permalink
[bug] fix extra brackets in mmc2json, port from mcx2json
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Sep 9, 2024
1 parent 17811da commit 868cde3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mmclab/mmc2json.m
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
if (isfield(cfg, 'detpos') && ~isempty(cfg.detpos))
Optode.Detector = struct();
Optode.Detector = cell2struct(mat2cell(cfg.detpos, ones(1, size(cfg.detpos, 1)), [3 1]), {'Pos', 'R'}, 2);
Optode.Detector = Optode.Detector(:)';
if (length(Optode.Detector) == 1)
Optode.Detector = {Optode.Detector};
end
Expand Down

0 comments on commit 868cde3

Please sign in to comment.