Skip to content

Commit f431303

Browse files
committed
Use strict mode in zip for NWB creation loop
Changed the zip function in the NWB creation loop to use strict=True, ensuring that argument_list and futures have the same length and raising an error if they do not. This improves error handling and prevents silent mismatches.
1 parent 883c26b commit f431303

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/trodes_to_nwb/convert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def pass_func(args):
188188
argument_list = list(file_info.groupby(["date", "animal"]))
189189
futures = client.map(pass_func, argument_list)
190190
# print out error results
191-
for args, future in zip(argument_list, futures, strict=False):
191+
for args, future in zip(argument_list, futures, strict=True):
192192
result = future.result()
193193
if result is not True:
194194
print(args, result)

0 commit comments

Comments
 (0)