Skip to content

Conversation

@DivInstance
Copy link

Summary

Replace string-based suffix removal with os.path.splitext for extracting label names from .txt files in whereami/get_data.py.

Why

Changes

whereami/get_data.py
: fname.removesuffix('.txt') -> os.path.splitext(fname)[0]

Type/Tag

enhancement, refactor

Closes #52

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