File tree 1 file changed +5
-5
lines changed
tests/utilities/nidigital_measurement
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -40,12 +40,8 @@ def measure(
40
40
connections = reservation .get_nidigital_connections (pin_names )
41
41
assert all ([session_info .session is not None for session_info in session_infos ])
42
42
passing_sites , failing_sites = _burst_spi_pattern (session_infos )
43
-
44
- def key_func (connection : TypedConnection [nidigital .Session ]):
45
- return connection .session_info .session_name
46
-
47
43
connections_by_session = [
48
- list (g ) for _ , g in groupby (sorted (connections , key = key_func ), key = key_func )
44
+ list (g ) for _ , g in groupby (sorted (connections , key = _key_func ), key = _key_func )
49
45
]
50
46
51
47
return (
@@ -134,3 +130,7 @@ def _resolve_relative_path(
134
130
return file_path
135
131
else :
136
132
return (directory_path / file_path ).resolve ()
133
+
134
+
135
+ def _key_func (conn : TypedConnection [nidigital .Session ]) -> str :
136
+ return conn .session_info .session_name
You can’t perform that action at this time.
0 commit comments