This PR adds new functionality to the Python wrapper as it allows to provide optional arguments in BART via keyworded arguments in Python. In this way it is possible to pass more than one optional argument, that requires a file, to BART.
The pics command allows for example to provide a trajectory file and a pattern file via the option "-t" and "-p". This is however not supported by the current wrapper, as it just concatenates the command string with the arguments. With the changes, this is now possible by running e.g.:
img = bart(1, 'pics', kspace, sensitivities, t=trj, p=pattern)
The changes should not break or change the current behaviour of the wrapper.
In principle, these functionalities are already included in the "bartpy" wrapper, which is currently broken though (see https://github.com/malits/bartpy/issues/4).
This PR adds new functionality to the Python wrapper as it allows to provide optional arguments in BART via keyworded arguments in Python. In this way it is possible to pass more than one optional argument, that requires a file, to BART.
The pics command allows for example to provide a trajectory file and a pattern file via the option "-t" and "-p". This is however not supported by the current wrapper, as it just concatenates the command string with the arguments. With the changes, this is now possible by running e.g.:
img = bart(1, 'pics', kspace, sensitivities, t=trj, p=pattern)
The changes should not break or change the current behaviour of the wrapper. In principle, these functionalities are already included in the "bartpy" wrapper, which is currently broken though (see https://github.com/malits/bartpy/issues/4).