Help Please ! Undocumented ERROR message so dont know how to fix the problem

2017-05-01 Thread murdock
I am having a problem that seems to persist. I have written a program that 
makes a mathematical calculation and uses a uses library that I have written. 
It had been working but somehow in playing around with it, it stoppedgo 
figure!  But here is the thing, when I run the program it gives me a very 
ambiguous message with only a string as in:

"The Receiver Noise Figure =
dBm"  

now the program is being run under PyScripter 

Function is called "Hamath" and has many functions in it but the one in 
question is:


def _Noise_Figure(BW,Signal_to_Noise,RX_Sensitivity):
''' calculates the noise figure of a receiver '''
#import math

return (174 + RX_Sensitivity - (10*log10(BW)) - Signal_to_Noise)

#

and the program that exercises that function is:

import Hamath
import math

def main():
#import math

BW = float (input ("Enter the Receiver Bandwidth in Hz"))
Signal_to_Noise = float (input ("Enter the Signal to Noise in dB"))
RX_Sensitivity = float (input ("Enter the RX_Sensitivity in dBm"))
#
print ("The Receiver Noise Figure = ",Hamath._Noise_Figure," dBm" )
if __name__ == '__main__':
main()

I am told that the error message is NOT an PyScripter error but in fact a 
Python message. But I can not find it anywhere in any of the documentation 
hence I have not been able to fix my problem.  

Any help would be appreciated.

M
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Best IDE for Python

2006-08-17 Thread Simone Murdock
On 14 Aug 2006 15:04:41 -0700, "Tryker" <[EMAIL PROTECTED]> wrote:

>Gotta love PyScripter. Light, easy to use, free.
>http://mmm-experts.com/Products.aspx?ProductID=4

I agree: I'm trying it only from 4 days the beta version 1.6 and it's
good (some little problems, normal for a beta version, that I'll write
them).

Simon
___
 
Sperm: To be fastest doesn't imply that you are smartest.
   ( by Enrique Herranz )
-- 
http://mail.python.org/mailman/listinfo/python-list