Skip to content

Commit 394a687

Browse files
committed
Merge branch '_TMP_RELEASE_BRANCH_' into niak-cog
2 parents 80ebd4f + 95957c6 commit 394a687

File tree

7 files changed

+37
-45
lines changed

7 files changed

+37
-45
lines changed

.circleci/config.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version: 2
2+
jobs:
3+
build:
4+
working_directory: /niak
5+
docker:
6+
- image: docker:17.05.0-ce-git
7+
steps:
8+
- checkout
9+
- setup_remote_docker
10+
- run:
11+
name: Niak test all
12+
command: |
13+
[ ! "$(docker ps -a | grep data_container)" ] && docker create -v /niak --name data_container alpine /bin/true
14+
docker cp /niak data_container:/
15+
docker run -it --volumes-from data_container simexp/niak_dependency:o4_cross_u16 /bin/bash -lic "cd /niak; octave --no-gui --eval \"addpath(genpath(pwd));[pipe,opt,status] = niak_test_all(struct(),struct('psom',struct('mode_pipeline_manager','session','mode','background','max_queued',6,'flag_pause',false))); exit(status)\""
16+
docker cp data_container:/niak/result /niak/result
17+
- store_artifacts:
18+
path: /niak/result
19+
# - deploy:
20+
# name: Push application Docker image
21+
# command: |
22+
# docker build -t simexp/niak:${A_TAG} .

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ BCT/
44
*.pyc
55
*.asv
66
psom_gb_vars_local.m
7+
TODO

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](https://circleci.com/gh/SIMEXP/niak.svg?style=shield&circle-token=:circle-token)](https://circleci.com/gh/SIMEXP/niak)
1+
[![Build Status](https://circleci.com/gh/SIMEXP/niak.svg?style=shield&circle-token=:circle-token)](https://circleci.com/gh/SIMEXP/niak) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
22

33
The neuroimaging analysis kit (NIAK) is a library of functions for the preprocessing and connectivity analysis of large functional neuroimaging data, using GNU Octave, and distributed under a MIT license. Essential documentation can be found on the [NIAK website](http://niak.simexp-lab.org/). The NIAK is developed and maintained by members and collaborators of the [SIMEXP laboratory](simexp-lab.org), Department of Computer Science and Operations research ([DIRO](http://en.diro.umontreal.ca/home/)), Geriatric institute of Montreal ([CRIUGM](http://www.criugm.qc.ca/)), [University of Montreal](http://www.umontreal.ca/english/). Many of the functions of the kit are based on software developed over the years by members and collaborators of the [Brain Imaging Center](http://www.bic.mni.mcgill.ca/), [McGill University](http://www.mcgill.ca/). See the [contributors](https://github.com/SIMEXP/niak/wiki/NIAK-contributors) page for more details.
44

circle.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

commands/misc/niak_gb_vars.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
134134

135135
%% NIAK version
136-
GB_NIAK.version = 'v1.1.3';
136+
GB_NIAK.version = 'v1.1.4';
137137

138138
%% Target for tests
139139
GB_NIAK.target_test = 'aj';

util/bin/niak_cmd.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,13 @@ def main(args=None):
8989
raise IOError("Pipeline {} not supported".format(pipeline_name))
9090

9191
if pipeline_name == "Niak_fmri_preprocess":
92-
logging.basicConfig(level=logging.INFO, format=('%(lineno)s - %(name)s - %(levelname)s - %(message)s'))
92+
93+
try:
94+
log_level = os.getenv("NIAK_LOG_LEVEL")
95+
logging.basicConfig(level=log_level, format=('%(lineno)s - %(name)s - %(levelname)s - %(message)s'))
96+
except ValueError: # Unknown level
97+
logging.basicConfig(level=logging.INFO, format=('%(lineno)s - %(name)s - %(levelname)s - %(message)s'))
98+
9399
pipeline = pyniak.load_pipeline.FmriPreprocess(folder_in=parsed.file_in,
94100
folder_out=parsed.folder_out,
95101
subjects=parsed.subjects,

util/pyniak/load_pipeline.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ def run(self):
8484
self.psom_gb_vars_local_setup()
8585

8686
try:
87+
logging.info("{}".format(" ".join(self.octave_cmd)))
88+
logging.info(("{0};\n{1}(files_in, opt);".format(";\n".join(self.octave_options), self.pipeline_name)))
8789
p = subprocess.Popen(self.octave_cmd)
8890
p.wait()
8991
except BaseException as e:
@@ -104,7 +106,7 @@ def octave_cmd(self):
104106
tmp_oct = tempfile.NamedTemporaryFile('w', prefix='niak_script_', suffix='.m', dir='/tmp', delete=False)
105107
tmp_oct.write(("{0};\n{1}(files_in, opt);".format(";\n".join(self.octave_options), self.pipeline_name)))
106108
tmp_oct.close()
107-
return ["/usr/bin/env", "octave", "{}".format(tmp_oct.name)]
109+
return ["/usr/bin/env", "octave", "--no-gui", "{}".format(tmp_oct.name)]
108110

109111
@property
110112
def octave_options(self):
@@ -205,8 +207,8 @@ def grabber_construction(self):
205207
logging.debug("func hint {}".format(self.func_hint))
206208
opt_list += ["opt_gr.func_hint = '{0}'".format(self.func_hint)]
207209
if self.anat_hint:
208-
logging.debug("anat hint {}".format(self.anat_hint))
209-
opt_list += ["opt_gr.anat_hint = '{0}'".format(self.func_hint)]
210+
logging.debug("anat_hint :{}".format(self.anat_hint))
211+
opt_list += ["opt_gr.anat_hint = '{0}'".format(self.anat_hint)]
210212

211213
opt_list += ["files_in=niak_grab_bids('{0}',opt_gr)".format(in_full_path)]
212214

0 commit comments

Comments
 (0)