Skip to content

Handle NaN TOMTOM matches in the descriptive report (pandas >= 3) - #139

Open
MCHRISTOPHE1 wants to merge 1 commit into
kundajelab:masterfrom
MCHRISTOPHE1:kl-fix-nan-tomtom-matches
Open

MCHRISTOPHE1 wants to merge 1 commit into
kundajelab:masterfrom
MCHRISTOPHE1:kl-fix-nan-tomtom-matches

Conversation

@MCHRISTOPHE1

Copy link
Copy Markdown

With pandas >= 3, missing TOMTOM hits (None in generate_tomtom_dataframe) become NaN, which passes the truthiness checks in create_tomtom_match_logos/create_descriptive_names, so modisco report crashes with AttributeError: 'float' object has no attribute 'strip'. This converts NaN back to None when building tomtom_data. Added a regression test that fails on master and passes with the fix. Moved from jmschrei/tfmodisco-lite#80.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant