-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #482 from Remi-Gau/remi-job_mat_to_mfile
[ENH] save jobs as m file
- Loading branch information
Showing
73 changed files
with
458 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
## Contributing guidelines | ||
|
||
Feel free to open issues to report a bug and ask for improvements. | ||
|
||
If you want to contribute, have a look at our | ||
[contributing guidelines](https://github.com/cpp-lln-lab/.github/blob/main/CONTRIBUTING.md) | ||
that are meant to guide you and help you get started. If something is not clear | ||
or you get stuck: it is more likely we did not do good enough a job at | ||
explaining things. So do not hesitate to open an issue, just to ask for | ||
clarification. | ||
|
||
### Style guidelines | ||
|
||
We use `camelCase` to name functions and variables for the vast majority of the | ||
code in this repository. | ||
|
||
Scripts names in general and as well functions related to the demos use a | ||
`snake_case`. | ||
|
||
Constant are written in `UPPERCASE`. | ||
|
||
#### Input arguments ordering | ||
|
||
From more general to more specific | ||
|
||
`BIDS` > `opt` > `subject` > `session` > `run` | ||
|
||
- `BIDS` (output from `getData` or `bids.layout`) restrict the set of possible | ||
analysis one can run to this BIDS data set | ||
- `opt` restricts this set even further | ||
- `subject` / `session` / `run` even more | ||
|
||
```matlab | ||
% OK | ||
varargout = getInfo(BIDS, opt, subLabel, info, varargin) | ||
% not OK | ||
varargout = getInfo(subLabel, BIDS, opt, info, varargin) | ||
``` | ||
|
||
#### Output arguments ordering | ||
|
||
Try to return them in order of importance first and in order of appearance | ||
otherwise. | ||
|
||
#### Exceptions | ||
|
||
If function creates or modifies a batch then `matlabbatch` is the first `argin` | ||
and first `argout`. | ||
|
||
If a function performs an "action" to be chosen from a one of several strings | ||
(with a switch statement), this string comes as first `argin` or second if | ||
`matlabbatch` is first. | ||
|
||
```matlab | ||
% OK | ||
varargout = getInfo('filename', BIDS, opt, subID, varargin) | ||
[matlabbatch, voxDim] = setBatchRealign(matlabbatch, [action = 'realign',] BIDS, opt, subID) | ||
% not OK | ||
% 'filename' is the name of the "action" or the info to get in this case | ||
% batch and action should go first | ||
varargout = getInfo(BIDS, opt, subID, 'filename', varargin) | ||
[matlabbatch, voxDim] = setBatchRealign(BIDS, opt, subID, matlabbatch, [action = 'realign']) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,3 @@ validate_cff: CITATION.cff | |
|
||
manual: | ||
cd docs && sh create_manual.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
enable: false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,3 @@ pre-commit | |
jupyterlab | ||
octave_kernel | ||
rstcheck | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.