Closed willend closed 5 years ago
I had a look myself, but the logic looks a bit too involved :-)
Same output with current GitHub code as well as 2.0 release
Hmm, it seems I can save once I do
if iscell(val) && ~isempty(val) && ischar(val{1}), val = sprintf('%s ', val{:}); elseif iscell(val) && ~isempty(val) && isnumeric(val{1}), val = sprintf('%f ', val{:}); end if ~isempty(val) t=val; t(~isstrprop(t,'print')) = ' '; val=t; fprintf(fid, '# %-13s %-s %s\n', name, val, comment); parameters.(name)=NaN; end
...
Attaching txt file with edits here Sqw_McStas.m.txt
It seems the output only includes the positive combination of [h k l]
The default example taken from http://ifit.mccode.org/McStas.html#mozTocId36233 fails on the save step: