Skip to content

bug: string outcome variable handling throwing an attribute error #135

@strixy16

Description

@strixy16

READII-2-ROQC settings config

DATA_SOURCE: "TCIA"
DATASET_NAME: "RADCURE"

### CLINICAL VARIABLE INFORMATION ###
CLINICAL:
    FILE: "RADCURE_Clinical_v04_20241219.xlsx"
    OUTCOME_VARIABLES:
        time_label: "Length FU"
        event_label: "Status"
        convert_to_years: False
        event_value_mapping: {0: ['Alive'], 1: ['Dead']}
    EXCLUSION_VARIABLES: {} 
    INCLUSION_VARIABLES: {'Ds Site': ['Oropharynx'],
                          'HPV': ['Yes, positive', 'Yes, Negative']
                         }

Error:

File "/home/bhkuser/bhklab/katy/readii_2_roqc/.pixi/envs/default/lib/python3.13/site-packages/readii/process/label.py", line 252, in eventOutcomeColumnSetup
    event_column_value_mapping = {status.lower():value for status, value in event_column_value_mapping.items()}
                                  ^^^^^^^^^^^^
AttributeError: 'int' object has no attribute 'lower'

Have obviously mixed up whether the keys, values are event strings or numeric

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions