Skip to content
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

Fixing broken link for IXI #257

Merged
merged 2 commits into from
Nov 15, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions flamby/datasets/fed_ixi/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ def __init__(self, transform=None, debug=False, data_path=None):
self.root_folder = Path(data_path)

self.image_url = (
"https://md-datasets-cache-zipfiles-prod.s3.eu-west-1"
".amazonaws.com/7kd5wj7v7p-1.zip"
"https://prod-dcd-datasets-cache-zipfiles.s3.eu-west-1"
".amazonaws.com/7kd5wj7v7p-3.zip"
)
self.metadata = pd.read_csv(
Path(os.path.dirname(flamby.datasets.fed_ixi.__file__))
Expand All @@ -69,7 +69,7 @@ def __init__(self, transform=None, debug=False, data_path=None):
self.modality = "T1"

# Download of the ixi tiny must be completed and extracted to run this part
self.parent_dir_name = os.path.join("7kd5wj7v7p-1", "IXI_sample")
self.parent_dir_name = os.path.join("7kd5wj7v7p-3", "IXI_sample")
self.subjects_dir = os.path.join(self.root_folder, self.parent_dir_name)

# contains paths of archives which contain a nifti image for each subject
Expand Down Expand Up @@ -105,7 +105,7 @@ def __init__(self, transform=None, debug=False, data_path=None):

@property
def zip_file(self) -> ZipFile:
zf = self.root_folder.joinpath("7kd5wj7v7p-1.zip")
zf = self.root_folder.joinpath("7kd5wj7v7p-3.zip")
return ZipFile(zf)

def _validate_center(self) -> None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

# IXI Tiny

TINY_URL = "https://md-datasets-cache-zipfiles-prod.s3.eu-west-1.amazonaws.com/7kd5wj7v7p-1.zip"
TINY_URL = "https://prod-dcd-datasets-cache-zipfiles.s3.eu-west-1.amazonaws.com/7kd5wj7v7p-3.zip"


def dl_ixi_tiny(output_folder, debug=False):
Expand Down