Example #1
0
def _fix_rawniml_table_output(r):
    colms_tp = niml.find_attribute_node(r, 'atr_name', 'COLMS_TYPE')
    colms_tp['data'] = ('R_col;G_col;B_col;A_col;'
                        'Node_Index_Label;Node_String_Label')

    colms_st = niml.find_attribute_node(r, 'atr_name', 'COLMS_STATSYM')
    colms_st['data'] = "none;none;none;none;none;none"

    dset = niml.find_attribute_node(r, 'name', 'AFNI_dataset')
    dset['name'] = 'AFNI_labeltable'
    dset['dset_type'] = 'LabelTableObject'
    dset['flipped'] = '0'
    dset['Sgn'] = '0'

    table = niml.find_attribute_node(r, 'data_type', 'Node_Bucket_data')
    table['data_type'] = 'LabelTableObject_data'
Example #2
0
def _fix_rawniml_main_output(r):
    main = niml.find_attribute_node(r, 'data_type', 'Node_Bucket_data')
    main['data_type'] = 'Node_Label_data'

    idx = niml.find_attribute_node(r, 'data_type', 'Node_Bucket_node_indices')
    idx['data_type'] = 'Node_Label_node_indices'