You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 1. Detect the start of the block we want to change
44
+
if "program_hash = utils.content_hash(" in line:
45
+
found = True
46
+
# Insert the NEW pre-calculation line
47
+
# We steal the indentation from the current line to be safe
48
+
indent = line[:line.find("program_hash")]
49
+
new_lines.append(f"{indent}offset_provider_arrays = {{key: value.ndarray if hasattr(value, \"ndarray\") else value for key, value in offset_provider.items()}}")
0 commit comments