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 17, 2024
1 parent 72ecb68 commit b47898f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/distpartitioning/dataset_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,9 +548,9 @@ def get_dataset(
)
parse_options = pyarrow.csv.ParseOptions(delimiter=" ")

# 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:
# 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.
continue
with pyarrow.csv.open_csv(
edge_file,
Expand Down

0 comments on commit b47898f

Please sign in to comment.