Skip to content

[enhancement] refactor: use os.path.splitext to strip .txt suffix in training labels#63

Open
DivInstance wants to merge 1 commit into
kootenpv:masterfrom
DivInstance:refactor/splitext-labels
Open

[enhancement] refactor: use os.path.splitext to strip .txt suffix in training labels#63
DivInstance wants to merge 1 commit into
kootenpv:masterfrom
DivInstance:refactor/splitext-labels

Conversation

@DivInstance

Copy link
Copy Markdown

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