Skip to content

Commit

Permalink
added special 'SI' unit in convertUnitBattMo
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierr committed Dec 10, 2024
1 parent f41cb84 commit a2e7a91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Utilities/JsonUtils/convertUnitBattMo.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
if numel(val) == 1
isConverted = true;
% This is a numerical parameter that requires a unit conversion
if ~isempty(val.unit)
if ~isempty(val.unit) && ~strcmp(val.unit, 'SI')
str = sprintf('val = %g*%s;', val.value, val.unit);
eval(str);
else
Expand Down

0 comments on commit a2e7a91

Please sign in to comment.