-
Notifications
You must be signed in to change notification settings - Fork 62
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
[GSProcessing] Update GSProcessing custom split config parsing and documentation to match GConstruct. #1117
base: main
Are you sure you want to change the base?
Conversation
…figs whether they are single str or list[str] NOTE: GSProcessing now requires list[str] for its custom split file config input.
dba7f4d
to
436a886
Compare
graphstorm-processing/graphstorm_processing/data_transformations/dist_label_loader.py
Show resolved
Hide resolved
graphstorm-processing/graphstorm_processing/config/config_conversion/gconstruct_converter.py
Outdated
Show resolved
Hide resolved
entry_val = label_custom_split_filenames.get(entry, None) | ||
if entry_val: | ||
if isinstance(entry_val, str): | ||
label_custom_split_filenames[entry] = [entry_val] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this way do we want to support string input for gsprocessing config?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, since GConstruct supports both, we use this to convert to list[str] which is our expectation for GSProcessing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right. But I suppose the code here only convert the gconstruct config, do we also support the config in gsprocessing config?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer having a single way to do things to avoid confusing users. This goes along with the Python principle of "There should be one-- and preferably only one --obvious way to do it." https://peps.python.org/pep-0020/
Co-authored-by: jalencato <[email protected]>
NOTE: GSProcessing now requires list[str] for its custom split file config input.
Issue #, if available:
Description of changes:
gsprocessing.config
classes and functions that were previously untested.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.