Skip to content

default None option for 'empty' param in classification.py -> single_classification function #226

@kgarwoodsdzwa

Description

@kgarwoodsdzwa

def single_classification(animals: pd.DataFrame,
empty: Optional[pd.DataFrame],
predictions_raw: np.array,
class_list: pd.DataFrame):
should have empty = None for default
and then line 354 will also need to change to accept None in empty:
manifest = pd.concat([animals if not animals.empty else None, empty if not empty.empty else None]).reset_index(drop=True)
None won't have property empty.empty to check for

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions