Skip to content

Commit

Permalink
fix: more inner method to private method due to mypy error
Browse files Browse the repository at this point in the history
  • Loading branch information
jayaseelan-james committed Nov 8, 2023
1 parent 9a065ac commit 2e5b9b7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/utilities/nidigital_measurement/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,8 @@ def measure(
connections = reservation.get_nidigital_connections(pin_names)
assert all([session_info.session is not None for session_info in session_infos])
passing_sites, failing_sites = _burst_spi_pattern(session_infos)

def key_func(connection: TypedConnection[nidigital.Session]):
return connection.session_info.session_name

connections_by_session = [
list(g) for _, g in groupby(sorted(connections, key=key_func), key=key_func)
list(g) for _, g in groupby(sorted(connections, key=_key_func), key=_key_func)
]

return (
Expand Down Expand Up @@ -134,3 +130,7 @@ def _resolve_relative_path(
return file_path
else:
return (directory_path / file_path).resolve()


def _key_func(conn: TypedConnection[nidigital.Session]) -> str:
return conn.session_info.session_name

0 comments on commit 2e5b9b7

Please sign in to comment.