def _test_remote_metadata(self, file_format):
     from mobie.metadata import add_remote_project_metadata
     self.init_dataset(file_format)
     bucket_name = "my-bucket"
     service_endpoint = "https://s3.embl.de"
     add_remote_project_metadata(self.root, bucket_name, service_endpoint)
     self._check_remote_metadata(file_format, service_endpoint, bucket_name)
示例#2
0
def prepare_upload():
    bucket_name = 'sponge-fibsem'
    service_endpoint = 'https://s3.embl.de'
    authentication = 'Anonymous'
    add_remote_project_metadata('data',
                                bucket_name,
                                service_endpoint=service_endpoint,
                                authentication=authentication)
示例#3
0
    chunks=chunks,
    scale_factors=scale_factors,
    add_default_table=True
)


# finally, we update the default bookmark so that both the raw data and the segmentation is
# loaded upon opening the dataset
source_list = [[raw_name], [segmentation_name]]
settings = [
    {"color": "white", "contrastLimits": [0., 255.]},
    {"lut": "glasbey", "opacity": 0.75}
]
viewer_transform = {"affine": [2., 0., 0., 0.,
                               0., 2., 0., 0.,
                               0., 0., 1., 0.]}
mobie.metadata.add_dataset_bookmark(dataset_folder, "default",
                                    sources=source_list, display_settings=settings,
                                    viewer_transform=viewer_transform,
                                    overwrite=True)


# create metadata for remote data
bucket_name = 'my-test-bucket'
service_endpoint = 'https://s3.embl.de'
metadata.add_remote_project_metadata(
    mobie_project_folder,
    bucket_name,
    service_endpoint,
)