Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5938

Script editor indent warning error

$
0
0

Hi.

Using R8 ST17, scripting in python.

And I am getting this error:
inconsistent use of tabs and spaces in indentation

For this code:

	if hourly_:
		tree = gh.DataTree[object]()
        for i, sublist in enumerate(HourlyValues):
            path = gh.Kernel.Data.GH_Path(i)
            tree.AddRange(sublist, path)

        # Output the tree
        HourlyValues = tree

for the line for i, sublist in enumerate(HourlyValues):

But this is at the correct indent.
If I move it one space less indent, I don’t get the error immediately, but it comes when I run the script.
And it works in another script at the same indent, so…

FYI : The error is still there after a restart of Rhino.

Regards,

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles