Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: parsing of empty track_features #2485

Merged
merged 1 commit into from
Apr 24, 2023

Conversation

AntoinePrv
Copy link
Member

Fix on #2478

Copy link
Member

@Hind-M Hind-M left a comment

Choose a reason for hiding this comment

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

Should we add a check in split function to throw in case the input is empty?
Something similar to this?
https://github.com/mamba-org/mamba/blob/main/libmamba/src/core/util_string.cpp#L478-L481

@AntoinePrv
Copy link
Member Author

I think it's a well defined operation, in Python you have "".split(",") == [""].

@JohanMabille JohanMabille merged commit ba4b020 into mamba-org:main Apr 24, 2023
20 checks passed
@Hind-M
Copy link
Member

Hind-M commented Apr 24, 2023

Oh so the purpose of this PR was more avoiding to call split when the input is empty than a fix right?

@AntoinePrv
Copy link
Member Author

In the case of track_feature, the default behaviour of split (i.e. the Python behaviour) is not what we want.
This fixes the invocation of split, not split itself (which need not be fixed).

@AntoinePrv AntoinePrv deleted the fix-track-features branch April 24, 2023 12:26
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.

None yet

3 participants