Skip to content

bug: numpy ndarray has no attribute 'remove' error from label.py #134

@katy-scott

Description

@katy-scott

When no event value mapping passed for RADCURE processing, get the following error:

File "/home/bhkuser/bhklab/katy/readii_2_roqc/.pixi/envs/default/lib/python3.13/site-packages/readii/process/label.py", line 248, in eventOutcomeColumnSetup
    event_column_value_mapping = survivalStatusToNumericMapping(event_outcome_column=dataframe_with_standardized_outcome[outcome_column_label])
File "/home/bhkuser/bhklab/katy/readii_2_roqc/.pixi/envs/default/lib/python3.13/site-packages/readii/process/label.py", line 172, in survivalStatusToNumericMapping
    existing_event_values.remove("alive")
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'numpy.ndarray' object has no attribute 'remove'

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