diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 547498d1..35742302 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,14 +1,14 @@ ### Main improvements in this PR: +- documentation: + - updated all documentation +- features: + - introduced option to do function Y (solves #12345) --> #### Instructions on merging this PR: - [ ] This PR has `develop` as target branch, and will be resolved with a *squash-merge*. -- [ ] This PR has `main` as target branch, and will be resolved with a *merge commit*. +- [ ] This PR has `main` as target branch, and will be resolved as descriped [here](https://github.com/SysBioChalmers/RAVEN/wiki/Development-policy#make-a-new-release). diff --git a/core/generateNewIds.m b/core/generateNewIds.m index d8b535c8..f66c6aa5 100755 --- a/core/generateNewIds.m +++ b/core/generateNewIds.m @@ -26,6 +26,9 @@ else error('type should be either ''rxns'' or ''mets''.') end +if nargin<4 + quantity=1; +end if nargin<5 numLength=4; end @@ -44,7 +47,10 @@ fprintf(['No ' type ' ids with prefix "' prefix ... '" currently exist in the model. The first new id will be "' ... [prefix,num2str(1,['%0' num2str(numLength) 'd'])] '"\n'],'%s') - lastId=0; +end + +if isnan(lastId) + lastId = 0; end newIds=cell(quantity,1); diff --git a/doc/core/generateNewIds.html b/doc/core/generateNewIds.html index 9bd3b1ea..557c9603 100644 --- a/doc/core/generateNewIds.html +++ b/doc/core/generateNewIds.html @@ -85,33 +85,39 @@