Skip to content

NameError: name 'logger' is not defined in data_collator.py when input contains all-zero rows #2

@anbauoq

Description

@anbauoq

data_collator.py calls logger.warning(...) on line 53, but logger is never imported or defined in the file. When the input count matrix contains a row of all zeros, the pipeline crashes with:

  NameError: name 'logger' is not defined

Please consider defining a logger, which would allow the warning to be logged properly instead of causing the pipeline to fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions