Skip to content

Problem with lists of strings begin converted to unicode (AntsJointFusion). #1863

Closed
@hjmjohnson

Description

@hjmjohnson

Summary

A quick followup with specific details:
 
In AntsJointFusion interface:
 
    target_image = InputMultiPath(File(exists=True), argstr='-tg %s...',
                                  mandatory=True, desc='Target image(s)')
 
 
is generating a command line of:

Actual behavior

-t [u'/Shared/nopoulos/structural/DM1_MR/BAWEXPERIMENT_20170302/20170302_DM1_base_CACHE/singleSession_985_65222115/TissueClassify/BABC/t1_average_BRAINSABC.nii.gz']
 

Expected behavior

Which generates an error.
 
What we want is a command line of:
-t ['/Shared/nopoulos/structural/DM1_MR/BAWEXPERIMENT_20170302/20170302_DM1_base_CACHE/singleSession_985_65222115/TissueClassify/BABC/t1_average_BRAINSABC.nii.gz']
 

How to replicate the behavior

Newer version of python or nipype (not determined).

Platform details:

please paste the output of: python -c "import nipype; print(nipype.get_info()); print(nipype.__version__)"

 
 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions