Skip to content
Snippets Groups Projects
Commit 386c409d authored by Axel Farrugia's avatar Axel Farrugia
Browse files

[Chore] Code cleaning

parent c8069105
No related branches found
No related tags found
2 merge requests!414Update version 0.5.1 -> 0.6.0,!406[Fix] Export CPP Tests
Pipeline #71089 passed
......@@ -505,7 +505,7 @@ class ExportNodeCpp(ExportNode):
raise ValueError("kernels_to_copy have not been defined")
# Check for deprecated usage of kernels_to_copy
if self.kernels_to_copy != [] and type(self.kernels_to_copy[0]) == str:
if len(self.kernels_to_copy) > 0 and isinstance(self.kernels_to_copy[0], str):
aidge_core.Log.warn("This way of using kernels_to_copy is deprecated. " \
"Please consider using the add_kernel_to_copy() function instead.")
self.reformat_kernels_to_copy()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment