What is Type Error?

Calvin ee_fhw at stu.ust.hk
Sun Nov 18 01:58:07 EST 2001


Greetings,
	I'm developing a simlator for LCD and get stuck with the Type Error. The 
attached is my LCD.py file, when compile I got the following error:

Traceback (most recent call last):
   File "<string>", line 1, in ?
   File "C:\Python21\LCDSim\start.py", line 5, in ?
     lcd.elastic_energy()
   File "C:\Python21\LCDSim\LCD.py", line 33, in elastic_energy
 
self.__energy[n]=1/2(self.__lc.k1(self.__azimuth[n])*d_azimuth**2+self.__lc.k2(self.__azimuth[n])*d_twist**2 
+self.__lc.k3(self.__azimuth[n])*d_twist**2)
TypeError: object of type 'int' is not callable

could anybody point out how can I solve it, I just got no ideas :(

Thank you (if you can email me, please email me)
-Calvin
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: LCD.py
URL: <http://mail.python.org/pipermail/python-list/attachments/20011118/73f6c95e/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: LC.py
URL: <http://mail.python.org/pipermail/python-list/attachments/20011118/73f6c95e/attachment-0001.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: start.py
URL: <http://mail.python.org/pipermail/python-list/attachments/20011118/73f6c95e/attachment-0002.ksh>


More information about the Python-list mailing list