Skip to content

Commit

Permalink
remove setters for read only attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
pattonw committed Aug 25, 2024
1 parent 2a94cab commit 6070c61
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions funlib/persistence/arrays/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,6 @@ def offset(self) -> Coordinate:
]
)

@offset.setter
def offset(self, offset: Iterable[int]) -> None:
self._metadata.offset = Coordinate(offset)

@property
def voxel_size(self) -> Coordinate:
"""Get the size of a voxel in world units."""
Expand All @@ -133,10 +129,6 @@ def voxel_size(self) -> Coordinate:
]
)

@voxel_size.setter
def voxel_size(self, voxel_size: Iterable[int]) -> None:
self._metadata.voxel_size = Coordinate(voxel_size)

@property
def units(self) -> list[str]:
udims = self.uncollapsed_dims(physical=True)
Expand All @@ -146,10 +138,6 @@ def units(self) -> list[str]:
if uncollapsed
]

@units.setter
def units(self, units: list[str]) -> None:
self._metadata.units = list(units)

@property
def axis_names(self) -> list[str]:
return [
Expand All @@ -158,10 +146,6 @@ def axis_names(self) -> list[str]:
if uncollapsed
]

@axis_names.setter
def axis_names(self, axis_names):
self._metadata.axis_names = list(axis_names)

@property
def roi(self):
"""
Expand Down

0 comments on commit 6070c61

Please sign in to comment.