Skip to content
Merged
Show file tree
Hide file tree
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
16 changes: 7 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,31 @@
*DS_Store

# exclude content of logfiles folders
*output*
output

*.mat

# exclude temp files from tests and coverage
*test_code_report.txt
test_report.log
*coverage*
test_report.log
check_my_code_report.txt

*filteredBy*

tests/*.nii*
tests/*.json*
tests/*.tsv*

# exclude report from check_my_code
check_my_code_report.txt

# jupyter notebook checkpoints
.ipynb_checkpoints
notebooks/source/*
notebooks/output/*
notebooks/new_experiment/*

# ignore node js files
node_modules/*
package.json
package-lock.json
package.json

Expand All @@ -34,14 +35,11 @@ package.json

# virtual env
cpp_bids/*
env/
env

# documentation
docs/build/*

# jupyter notebooks
.ipynb_checkpoints

## MATLAB / OCTAVE gitignore template

# From : https://github.com/github/gitignore/blob/master/Global/MATLAB.gitignore
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@
MATLAB = /usr/local/MATLAB/R2017a/bin/matlab
ARG = -nodisplay -nosplash -nodesktop

<<<<<<< HEAD
=======
.PHONY: clean manual clean_demos fix_submodule
clean: clean_demos
rm -rf version.txt

fix_submodule:
git submodule update --init --recursive && git submodule update --recursive

>>>>>>> 3a67904c66439e90c8fc528ac8729254b91d56d6
lint:
mh_style --fix && mh_metric --ci && mh_lint

Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- markdown-link-check-disable -->

[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/cpp-lln-lab/CPP_BIDS/master?filepath=notebooks%2Fbasic_usage.ipynb)
[![Documentation Status: stable](https://readthedocs.org/projects/cpp-bids/badge/?version=stable)](https://cpp-bids.readthedocs.io/en/stable/?badge=stable)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4007674.svg)](https://doi.org/10.5281/zenodo.4007674)
Expand All @@ -6,6 +8,8 @@
[![codecov](https://codecov.io/gh/cpp-lln-lab/CPP_BIDS/branch/master/graph/badge.svg)](https://codecov.io/gh/cpp-lln-lab/CPP_BIDS)
[![All Contributors](https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square)](#contributors-)

<!-- markdown-link-check-enable -->

# CPP_BIDS

A set of function for matlab and octave to create
Expand Down
2 changes: 1 addition & 1 deletion checkCppBidsDependencies.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function checkCppBidsDependencies(cfg)
CPP_BIDS_INITIALIZED = true();

else
if cfg.verbose
if ~isfield(cfg, 'versbose') || cfg.verbose
fprintf(1, '\n\nCPP_BIDS already initialized\n\n');
end

Expand Down
Binary file modified docs/cpp_bids-manual.pdf
Binary file not shown.
15 changes: 0 additions & 15 deletions docs/source/gui.rst

This file was deleted.

2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Welcome to CPP BIDS documentation!
set_up
function_description
utilities
gui
ui

A set of function for matlab and octave to create
`BIDS-compatible <https://bids-specification.readthedocs.io/en/stable/>`_
Expand Down
16 changes: 16 additions & 0 deletions docs/source/ui.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
User interface
*****************

List of functions in the ``ui`` folder: those are mostly to handle the "graphic interface"
that can be used to deal with ``userInputs()``.

----

.. automodule:: src.ui

.. autofunction:: askUserCli
.. autofunction:: askUserGui

.. autofunction:: createQuestionnaire
.. autofunction:: askForGroupAndOrSession
.. autofunction:: getIsQuestionToAsk
4 changes: 0 additions & 4 deletions docs/source/utilities.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,3 @@ List of functions in the ``utils`` folder.
.. autofunction:: returnNamesExtraColumns
.. autofunction:: returnNbColumns
.. autofunction:: setDefaultFields

.. automodule:: src.gui

.. autofunction:: askUserCli
2 changes: 1 addition & 1 deletion lib/bids-matlab
Submodule bids-matlab updated 46 files
+0 −8 +bids/+internal/error_handling.m
+0 −34 +bids/+internal/list_all_trial_types.m
+0 −189 +bids/+util/plot_events.m
+4 −67 +bids/File.m
+0 −579 +bids/Model.m
+5 −8 +bids/copy_to_derivative.m
+0 −237 +bids/diagnostic.m
+2 −2 +bids/functionSignatures.json
+1 −1 .github/workflows/update_schema.yml
+7 −45 .gitignore
+1 −1 .pre-commit-config.yaml
+0 −6 CITATION.cff
+0 −1 README.md
+0 −15 docs/source/function_description.rst
+ docs/source/images/MultisubjectMultimodalFaceProcessing.png
+ docs/source/images/MultisubjectMultimodalFaceProcessing_splitby-task.png
+0 −101 examples/07_BIDS-Matlab_diagnostic.ipynb
+2 −2 miss_hit.cfg
+14 −20 schema/objects/columns.json
+11 −11 schema/objects/entities.json
+80 −87 schema/objects/metadata.json
+0 −1 schema/rules/datatypes/anat.json
+0 −19 schema/rules/datatypes/dwi.json
+0 −18 schema/rules/datatypes/eeg.json
+0 −18 schema/rules/datatypes/ieeg.json
+0 −19 schema/rules/datatypes/meg.json
+0 −19 schema/rules/datatypes/perf.json
+0 −19 schema/rules/datatypes/pet.json
+1 −1 schema/rules/entities.json
+2 −1 tests/.gitignore
+12 −0 tests/data/SurfaceData/sub-06_hemi-R_space-individual_den-native_midthickness.json
+0 −0 tests/data/SurfaceData/sub-06_hemi-R_space-individual_den-native_midthickness.surf.gii
+9 −0 tests/data/SurfaceData/sub-06_hemi-R_space-individual_den-native_thickness.json
+0 −0 tests/data/SurfaceData/sub-06_hemi-R_space-individual_den-native_thickness.shape.gii
+0 −0 tests/data/SurfaceData/sub-06_space-individual_den-native_thickness.dscalar.nii
+17 −0 tests/data/SurfaceData/sub-06_space-individual_den-native_thickness.json
+0 −65 tests/data/model/model-empty_smdl.json
+0 −193 tests/data/model/model-narps_smdl.json
+0 −181 tests/data/model/model-rhymejudgement_smdl.json
+0 −201 tests/models/model-defaultVislocalizer_smdl.json
+0 −107 tests/test_bids_file.m
+0 −141 tests/test_bids_model.m
+0 −9 tests/test_copy_to_derivative.m
+0 −29 tests/test_diagnostic.m
+0 −45 tests/tests_utils/test_plot_events.m
+0 −2 tests/utils/get_test_data_dir.m
23 changes: 10 additions & 13 deletions runTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,28 @@ function runTests()

tic;

cd(fileparts(mfilename('fullpath')));

cfg.verbose = 0;
checkCppBidsDependencies(cfg);

if bids.internal.is_github_ci
fprintf(1, '\nThis is github CI\n');
else
fprintf(1, '\nThis is not github CI\n');
end
thisPath = fileparts(mfilename('fullpath'));

cd(thisPath);
fprintf('\nHome is %s\n', getenv('HOME'));

warning('OFF');

folderToCover = fullfile(pwd, 'src');
testFolder = fullfile(pwd, 'tests');
addpath(fullfile(thisPath, 'lib', 'JSONio'));
addpath(fullfile(thisPath, 'lib', 'bids-matlab'));

folderToCover = fullfile(thisPath, 'src');
addpath(genpath(folderToCover));
testFolder = fullfile(thisPath, 'tests');
addpath(testFolder);

addpath(fullfile(testFolder, 'utils'));

success = moxunit_runtests(testFolder, ...
'-verbose', '-recursive', '-with_coverage', ...
'-cover', folderToCover, ...
'-cover_xml_file', 'coverage.xml', ...
'-cover_html_dir', fullfile(pwd, 'coverage_html'));
'-cover_html_dir', fullfile(thisPath, 'coverage_html'));

if success
system('echo 0 > test_report.log');
Expand Down
6 changes: 4 additions & 2 deletions src/checkCFG.m
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,10 @@
'output');

fieldsToSet.subject.askGrpSess = [true true];
fieldsToSet.subject.sessionNb = 1; % in case no session was provided
fieldsToSet.subject.subjectGrp = ''; % in case no group was provided
fieldsToSet.subject.sessionNb = []; % in case no session was provided
fieldsToSet.subject.subjectGrp = []; % in case no group was provided
fieldsToSet.subject.runNb = [];
fieldsToSet.subject.subjectNb = [];

fieldsToSet.testingDevice = 'pc';

Expand Down
46 changes: 0 additions & 46 deletions src/gui/askUserCli.m

This file was deleted.

60 changes: 0 additions & 60 deletions src/gui/askUserGui.m

This file was deleted.

54 changes: 0 additions & 54 deletions src/gui/createQuestionList.m

This file was deleted.

Loading