Skip to content

Conversation

@jewelltaylor
Copy link
Contributor

…ker shutup

PR Type

[Feature | Fix | Documentation | Other ]

Short Description

Nice job @scarere for already finding some bugs!

Small changes to address indexing we are indexing into lists of args from parser (instead of tuples) and to resolve an issue called by using stem when extensions may have multiple "." in them. Was able to run the preprocessing on the cluster so can confirm it works.

Tests Added

NA

@jewelltaylor jewelltaylor requested a review from emersodb June 13, 2024 23:06
annotation_path = Path(os.path.join(annotation_read_dir, annotation_filename))
annotation_base_filename = annotation_path.stem
# split on filename instead of stem on path since extension can have multiple "." in it.
annotation_base_filename = annotation_filename.split(".")[0]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting. Path has a "suffixes" functionality, that handles grabbing multiple "suffixes" when they exist, but stem doesn't handle that nor is there an obvious function that does 🤔

Copy link
Collaborator

@emersodb emersodb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to go!

@jewelltaylor jewelltaylor merged commit 1fcd388 into main Jun 14, 2024
@jewelltaylor jewelltaylor deleted the picai-prepare-data-bug branch June 14, 2024 14:02
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.

3 participants