Skip to content

Commit e4c457e

Browse files
committed
fix cv remote instantiation
1 parent 1a743cf commit e4c457e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

intern/convenience/array.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,14 @@ def __init__(self, cv_config: dict = None):
715715
"cloudpath": "",
716716
"bucket": "bossdb-open-data",
717717
}
718-
self._cv = CloudVolumeRemote(self.cv_config)
718+
# NOTE: Hotfix to translate the array configuration to a cloudvolume
719+
# remote configuration. The CV Remote does not distinguish between
720+
# bucket and path as separate attributes currently.
721+
self._cv = CloudVolumeRemote({
722+
"protocol": self.cv_config["protocol"],
723+
"cloudpath": f"{self.cv_config['bucket']}/{self.cv_config['cloudpath']}"
724+
})
725+
719726

720727
def get_remote(self):
721728
return self._cv

0 commit comments

Comments
 (0)