Skip to content

Commit 169534a

Browse files
committed
Install: Debug parse info on windows
1 parent e92b130 commit 169534a

1 file changed

Lines changed: 13 additions & 10 deletions

File tree

mhkit/package/+mhkit/+conda/parse_info.m

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@
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

@@ -76,14 +79,14 @@
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('\nFound 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
8992
end

0 commit comments

Comments
 (0)