Skip to content

Commit

Permalink
change dataset_utils
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Oct 15, 2024
1 parent 7bf402f commit 13d2dac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/distpartitioning/dataset_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,9 +547,11 @@ def get_dataset(
autogenerate_column_names=True,
)
parse_options = pyarrow.csv.ParseOptions(delimiter=" ")
if os.path.getsize(edge_file) == 0:

Check warning on line 550 in tools/distpartitioning/dataset_utils.py

View workflow job for this annotation

GitHub Actions / lintrunner

UFMT format

Run `lintrunner -a` to apply this patch.
# if getsize() == 0, the file is empty, indicating that the partition doesn't have this attribute.
# The src_ids and dst_ids should remain empty.
if os.path.getsize(edge_file) != 0:
continue
else:
with pyarrow.csv.open_csv(
edge_file,
read_options=read_options,
Expand Down

0 comments on commit 13d2dac

Please sign in to comment.