Skip to content

Commit

Permalink
fix: add a temporary model version
Browse files Browse the repository at this point in the history
The version field is empty in the source GEM
  • Loading branch information
IVANDOMENZAIN authored Mar 24, 2021
1 parent dd43816 commit a2361c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ecMouseGEM/scripts/preprocessModel.m
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
name = model.name;
end
if isfield(model,'version')
version = model.version;
version = '0';

This comment has been minimized.

Copy link
@mihai-sysbio

mihai-sysbio Mar 26, 2021

Member

This makes sense only for the non-main branch which lacks the version value as @Hao-Chalmers mentioned. It would be more robust to move up the check for isempty(version).

end
if isempty(name) && isempty(version) && isfield(model,'id')
try
Expand Down

0 comments on commit a2361c4

Please sign in to comment.