Skip to content

Commit

Permalink
also rename row ranges for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
jkanche committed Dec 28, 2023
1 parent 9dd613c commit e6085bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/summarizedexperiment/RangedSummarizedExperiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,15 +269,15 @@ def __str__(self) -> str:
######>> row_ranges <<######
############################

def get_rowranges(self) -> GRangesOrGRangesList:
def get_row_ranges(self) -> GRangesOrGRangesList:
"""Get genomic feature information.
Returns:
Genomic feature information.
"""
return self._row_ranges

def set_rowranges(
def set_row_ranges(
self, row_ranges: Optional[GRangesOrGRangesList], in_place: bool = False
) -> "RangedSummarizedExperiment":
"""Set new genomic features.
Expand All @@ -304,7 +304,7 @@ def set_rowranges(
@property
def row_ranges(self) -> GRangesOrGRangesList:
"""Alias for :py:meth:`~get_rowranges`."""
return self.get_rowranges()
return self.get_row_ranges()

@row_ranges.setter
def row_ranges(self, row_ranges: GRangesOrGRangesList) -> None:
Expand All @@ -313,7 +313,7 @@ def row_ranges(self, row_ranges: GRangesOrGRangesList) -> None:
"Setting property 'row_ranges' is an in-place operation, use 'set_rowranges' instead",
UserWarning,
)
return self.set_rowranges(row_ranges=row_ranges, in_place=True)
return self.set_row_ranges(row_ranges=row_ranges, in_place=True)

#################################
######>> range accessors <<######
Expand Down

0 comments on commit e6085bf

Please sign in to comment.