Hi folks,
sorry if this isn't in the right group but I've looked and this seems to be closest for discussing Pythong errors.
I'm generating temptables, well attempting to, for custom thermistors, but the two scripts I use,
the stock CreateTempTable.py and Hydraraptors MakeTempTable.py work for a bit but then spit the dummy.
The errors I'm getting are,
MakeTemptable.
Traceback (most recent call last):
File "C:\Users\xxxxxxxx\Desktop\Marlin-Running\Marlin\scripts\MakeTempTable.py",
line 51, in
for opt, arg in opts:
NameError: name 'opts' is not defined
CreateTempTable
C:\Users\Andrew\Desktop\Marlin-Running\Marlin\scripts>CreateTempTable.py --t1=59
--adc1=799 --t2=235 --adc2=50
Traceback (most recent call last):
File "C:\Users\Andrew\Desktop\Marlin-Running\Marlin\scripts\CreateTempTable.py
", line 101, in
main(sys.argv[1:])
File "C:\Users\Andrew\Desktop\Marlin-Running\Marlin\scripts\CreateTempTable.py
", line 96, in main
x = ((B / (3 * C)) ** 3 + (y ** 2) / 4) ** 0.5
ValueError: negative number cannot be raised to a fractional power
Both of these scripts will generate a table a couple of times then this will occur. I haven't
modified either of them and python is v2.7 with a default install.
Can someone suggest what on earth is going on??
Andrew