-
Notifications
You must be signed in to change notification settings - Fork 14
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
add mrtrix in capsul #288
add mrtrix in capsul #288
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are thing I do not know about config in Capsul v2. Especially for your question about cif value. You will have to wait a little bit to have a useful answer.
We could add tests for other modules but, as for other tests, this will only test a few elements regarding the definition of configuration values. We do not have a system for testing usage of configuration for software that may not be installed on the user system.
if config: | ||
settings.remove_config('mrtrix', 'global', | ||
getattr(config, cif)) | ||
settings.new_config('mrtrix', 'global', {'directory': '/there', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose that mrtrix is supposed to have a unique cif, not the same as ant. Any value would be possible here as long as it is unique among all other values.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using a unique hard-coded CIF will just forbid to have several installs / versions of Mrtrix configured in Capsul, but it will probably be OK.
session.new_config( | ||
'mrtrix', 'global', | ||
{'directory': mrtrix_path, | ||
cif: 'mrtrix'}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I must admit here that I do not know how cif values are used. In a previous comment I supposed it was automatically generated with a random value if not set, but I do not know why there is a fixed value here. @denisri might have the answer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't remember if the CIF is automatically generated if not specified, I guess yes but I have not checked (just coming back from vacation...). It is used as a key in the config database so it just has to be unique in the config CIF values. When several configs for the same software may be configured, the CIF must differ, that's why we use values like "spm12-standalone" or "spm8" to distinguish them, but it's just a convention.
Thanks for your feedback ! I will wait for Denis's advice about the cif value before to merge this branch (there's no hurry about this subject) |
Moreover some of the GitHub automatic test are failing, is it normal ? |
I haven't read the code thoroughly but it seems OK for me. |
codespell has many false positive that I don't know how to disable. I'm not sure if we should use it at all, it's sometimes useful but makes checks systematically fail in many projects. |
Hi,
I would like to add mrtrix (mrtrix3) in Capsul in order to use it in populse mia.
As I am not sure about which is the new method and which is the old one, I modified study_config, in_context and engine methods.
It seems to work fine on my side when I used mrtrix in populse (see https://github.com/populse/populse_mia/pull/313) and when I used the script the following script (with a config file: python -m capsul --config=/tmp/config_mrtrix.json /tmp/mrtrix_capsul.py /tpm/out_config.json):
Are there any other tests I need to perform?
Moreover, regarding the test done in Capsul I have few questions:
in test_capsul_engine I do not understand what I should use for cif for mrtrix ?
in study config should we add some test as for AFNI or ANTs ?
As it is my first steps in Capsul I think it could be a greta idea if someone can check what I have done :)