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

Cast single path to list of paths in DataConverter.merge_files #726

Merged
merged 12 commits into from
May 28, 2024

Conversation

RasmusOrsoe
Copy link
Collaborator

closes #711

Copy link
Collaborator

@Aske-Rosted Aske-Rosted left a comment

Choose a reason for hiding this comment

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

While the issue mentions that the user should be made aware of issue by raising a more sensible warning. This "fixes" the users mistake but ultimately runs a merge_files script on a single file. Is there some scenario where this action makes sense? Or is there something I am missing?

@RasmusOrsoe
Copy link
Collaborator Author

@Aske-Rosted thanks for pointing this out. That is why we have reviews! I updated the code to prompt an info message and return without merging.

Copy link
Collaborator

@Aske-Rosted Aske-Rosted left a comment

Choose a reason for hiding this comment

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

Looks good.

@RasmusOrsoe RasmusOrsoe merged commit 1d942a4 into graphnet-team:main May 28, 2024
14 checks passed
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.

DataConverter.merge_files loops over letters in string when filepath is given as string
2 participants