Open kaitj opened 1 month ago
MRTrix3
https://mrtrix.readthedocs.io/en/latest/reference/commands/mrcalc.html
The operand and the operations are not outputted in the correct order. Operations likely needs to be in a list similar to fslmaths.
fslmaths
Write a step with mrcalc using the DummyRunner to see.
mrcalc
DummyRunner
>>> mrtrix.mrcalc(operand=[mrtrix.MrcalcVariousFile("test.mif"), mrtrix.MrcalcVariousString(17), mrtrix.MrcalcVariousFile("output.mif")], eq=[mrtrix.MrcalcEq()]) MrcalcOutputs(root=PosixPath('.')) >>> get_global_runner().last_cargs ['mrcalc', '-eq', 'test.mif', 17, 'output.mif'] >>> mrcalc test.mif 17 -eq output.mif # Should look like this
Package
MRTrix3
Tool Name
https://mrtrix.readthedocs.io/en/latest/reference/commands/mrcalc.html
Problem Description
The operand and the operations are not outputted in the correct order. Operations likely needs to be in a list similar to
fslmaths
.Steps to Reproduce
Write a step with
mrcalc
using theDummyRunner
to see.Logs