Make DataConverter
accept a list of files to convert instead of only a directory
#699
Labels
DataConverter
accept a list of files to convert instead of only a directory
#699
Is your feature request related to a problem? Please describe.
DataConverter
accepts a single argumentinput_dir: Union[str, List[str]]
which point to one or multiple directories. These directories are searched using theGraphNeTFileReader.find_files()
method to create a list of file paths for conversion.This construction appeals to a workflow where data files of interest are copied to a separate directory and all intended for conversion.
There are examples of use cases where converting all files in a directory is unwanted behavior.
Describe the solution you'd like
Make
DataConverter
accept a list of user-generated file paths for conversion, instead of assuming all files in theinput_dir: Union[str, List[str]]
should be converted.We rename the
input_dir: Union[str, List[str]]
->input: Union[str, List[str]]
: A list of files and/or directories to convertand then slightly adjust the DataConverter from
to
Additional context
Multiple people have mentioned a wish for this feature
The text was updated successfully, but these errors were encountered: