Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: template curation script #28

Merged
merged 1 commit into from
Apr 4, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions code/curation/vx_y_z_template.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
%% Curations for release version x.y.z
% This script combines various curations on iYali vx.y.y to produce vx.y.z.
% Indicate is which issues are solved, more detailed explanation is given in the
% relevant pull requests

%% Define root of repository, requires git to be installed
[status,root]=system('git rev-parse --show-toplevel');
if status~=0; error('Unable to determine root of repository, is Git installed?')
else; root(end)=[]; end; clear status

%% Load iYali
cd([root, '/code'])
model = getEarlierModel('4.1.1'); % Modify to fit relevant model version

%% Fixes Issue #xx
% Include code here that fixes the issue. If there is a lot of code, or whenever
% relevant for other reasons, you can also call other scripts from here.

%% Fixes Issue #yy
% Multiple issues can be fixed in one release, but keep the code separate so
% it can easily be traced back to the relevant issue.

%% Prepare necessary files before making pull-request to the `devel` branch
cd([root, '/code'])
newCommit(model)