File tree Expand file tree Collapse file tree
mhkit/package/+mhkit/+conda Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4040 ' platform'
4141 };
4242
43+ disp(' Parsing conda info output...' );
44+ disp(cmd_out );
45+
4346 % Split the input into lines
4447 lines = regexp(cmd_out , ' \n ' , ' split' );
4548
7679 end
7780 end
7881
79- % % Verify all fields were found
80- % fprintf('\nFound fields:\n');
81- % for j = 1:length(fields_to_find)
82- % field_name = regexprep(lower(fields_to_find{j}), '\s+', '_');
83- % if isfield(result, field_name)
84- % fprintf(' %s: %s\n', field_name, result.(field_name));
85- % else
86- % fprintf(' WARNING: Field "%s" not found!\n', fields_to_find{j});
87- % end
88- % end
82+ % Verify all fields were found
83+ fprintf(' \n Found fields:\n ' );
84+ for j = 1 : length(fields_to_find )
85+ field_name = regexprep(lower(fields_to_find{j }), ' \s+' , ' _' );
86+ if isfield(result , field_name )
87+ fprintf(' %s : %s\n ' , field_name , result.(field_name ));
88+ else
89+ fprintf(' WARNING: Field "%s " not found!\n ' , fields_to_find{j });
90+ end
91+ end
8992end
You can’t perform that action at this time.
0 commit comments