Skip to content

irrelevant warning in sc.readwrite.is_valid_filename #3899

@nicolasrochette

Description

@nicolasrochette

What kind of feature would you like to request?

Improved documentation or error message?

Please describe your wishes

scanpy/src/scanpy/readwrite.py

Lines 1159 to 1164 in c4cbb22

if len(ext_from_file) > 2:
logg.warning(
f"Your filename has more than two extensions: {ext_from_file}.\n"
f"Only considering the two last: {ext_from_file[-2:]}."
)
ext_from_file = ext_from_file[-2:]

As long as the extension can be parsed without issues, a warning does not seem justified.

Proposed change: remove the warning so as to execute silently upon successful parsing of the extension

Related: #2288

Metadata

Metadata

Assignees

No one assigned

    Labels

    Triage 🩺This issue needs to be triaged by a maintainer

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions