Skip to content

Commit

Permalink
Re #3 enabling autoinstallation of the githooks for users, who would …
Browse files Browse the repository at this point in the history
…run unit tests
  • Loading branch information
abuts committed Apr 10, 2019
1 parent fdd0276 commit b7d1113
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion admin/check_horace_mex.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
% version
%
%
% $Revision$ $Date$
% $Revision: 1738 $ $Date: 2019-03-12 14:31:09 +0000 (Tue, 12 Mar 2019) $
%

compilation_date =[];
Expand Down
6 changes: 3 additions & 3 deletions admin/hpc.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function hpc(varargin)
% The meaning of hpc properties this function sets can be described as below:
% combine_sqw_using: true/false -- should mex extension be used to
% combine tmp files, if such extension
% is availible
% is available
% mex_combine_thread_mode: 0 use mex file for combining and run
% separate input and output thread
% 1 use mex file for combining and in
Expand All @@ -30,7 +30,7 @@ function hpc(varargin)
% mex_combine_buffer_size: 65536 -- file buffer used for each input file in mex-file combining
%
% build_sqw_in_parallel: 0 -- use separate Matlab sessions when processing input spe or nxspe files
% parallel_workers_number: 4 -- how many sessions to use.
% parallel_workers_number: 4 -- how many sessions to use.



Expand Down Expand Up @@ -129,7 +129,7 @@ function hpc(varargin)
mex_combine_buffer_size=128*1024;

build_sqw_in_parallel = 1;
% Lasy! need to do better then this, works only on ISIS pc-s
% Lazy! need to do better then this, works only on ISIS pc-s
parallel_workers_number = 4;
end

Expand Down
5 changes: 5 additions & 0 deletions horace_init.m
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@
% % to avoid repetitive messages about default configuration
% config_store.instance().store_config(hc,'-forcesave');
end
hec = herbert_config;
if hec.init_tests % install githooks for users who may run unit tests
% (and push to git repository)
copy_git_hooks('horace');
end



Expand Down

0 comments on commit b7d1113

Please sign in to comment.