childmindresearch / niwrap

https://childmindresearch.github.io/niwrap/
9 stars 8 forks source link

[Descriptor Issue]: mrcalc #158

Open kaitj opened 1 month ago

kaitj commented 1 month ago

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 the DummyRunner to see.

Logs

>>> 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