Skip to content

Commit

Permalink
data_logging: Ignore complexity of aggregate method
Browse files Browse the repository at this point in the history
Any splitting of this method would probably make the code less readable and less performant.
  • Loading branch information
mhthies committed Dec 3, 2023
1 parent 682d659 commit c244bc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shc/data_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ async def _websocket_before_subscribe(self, ws: aiohttp.web.WebSocketResponse) -
cls=SHCJsonEncoder))


def aggregate(data: List[Tuple[datetime.datetime, T]], type_: Type[T], start_time: datetime.datetime,
def aggregate(data: List[Tuple[datetime.datetime, T]], type_: Type[T], start_time: datetime.datetime, # noqa: C901
end_time: datetime.datetime, aggregation_method: AggregationMethod,
aggregation_interval: datetime.timedelta) -> List[Tuple[datetime.datetime, float]]:
"""
Expand Down

0 comments on commit c244bc9

Please sign in to comment.