From 54c26fb64c1cd22b6f8768a5f39f5e5b4af8649f Mon Sep 17 00:00:00 2001 From: Peyton Date: Sun, 6 Aug 2023 17:16:00 -0500 Subject: [PATCH] Small comment update to clarify how load order is decided. --- generate_python_code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate_python_code.py b/generate_python_code.py index 126c78a..240bcca 100644 --- a/generate_python_code.py +++ b/generate_python_code.py @@ -104,7 +104,7 @@ def determine_load_order(data: Dict) -> List: # Add the key and its corresponding data to the load order list. load_order.append((key, data[key], is_loader)) - # Load Loader keys first + # Load Loader, encoder, and keys without dependenciesfirst for key in data: class_def = NODE_CLASS_MAPPINGS[data[key]['class_type']]() if class_def.CATEGORY == 'loaders' or class_def.FUNCTION in ['encode'] or not any(isinstance(val, list) for val in data[key]['inputs'].values()):