Skip to content

Commit

Permalink
Updated comments
Browse files Browse the repository at this point in the history
  • Loading branch information
clinton-encord committed Dec 31, 2024
1 parent 2a3f258 commit 1084f6f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion encord/objects/classification_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def _set_for_ranges(
"""
At this point, this classification instance operates on ranges, NOT on frames.
We therefore leave only FRAME 0 in the map.The frame_data for FRAME 0 will be
treated as the data for all "frames" in this classification instance.
treated as the data the entire classification instance.
"""
self._set_frame_and_frame_data(
frame=0,
Expand Down Expand Up @@ -691,6 +691,8 @@ def _check_within_range(self, frame: int) -> None:
if frame < 0 or frame >= self._last_frame:
raise LabelRowError(
f"The supplied frame of `{frame}` is not within the acceptable bounds of `0` to `{self._last_frame}`."
f"Note: for non-geometric data (e.g. {DataType.AUDIO} and {DataType.PLAIN_TEXT}), "
f"the entire file only has 1 frame."
)

def _is_classification_already_present(self, frames: Iterable[int]) -> Set[int]:
Expand Down

0 comments on commit 1084f6f

Please sign in to comment.