Skip to content

Commit

Permalink
Fix directed/undirected pre-process option in CitationFull (#8179)
Browse files Browse the repository at this point in the history
Fixes #8171
  • Loading branch information
rusty1s authored Oct 11, 2023
1 parent e9f62c0 commit 6938d7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion torch_geometric/datasets/citation_full.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ def raw_file_names(self) -> str:

@property
def processed_file_names(self) -> str:
return 'data.pt'
suffix = 'undirected' if self.to_undirected else 'directed'
return f'data_{suffix}.pt'

def download(self):
download_url(self.url.format(self.name), self.raw_dir)
Expand Down

0 comments on commit 6938d7f

Please sign in to comment.