예제 #1
0
파일: vsipUser.py 프로젝트: rrjudd/jvsip
 def _fmtfunc(fmt1,fmt2,y):
     x = vsip.cscalarToComplex(y)
     if type(x) == complex:
         s = fmt1 % x.real
         s += fmt2 % x.imag
         s += "i"
         return s
     else:
         return fmt1 % x
예제 #2
0
 def _fmtfunc(fmt1, fmt2, y):
     x = vsip.cscalarToComplex(y)
     if type(x) == complex:
         s = fmt1 % x.real
         s += fmt2 % x.imag
         s += "i"
         return s
     else:
         return fmt1 % x
예제 #3
0
파일: vsipUser.py 프로젝트: rrjudd/jvsip
 def _fmtfunc(fmt1,fmt2,y):
     x = vsip.cscalarToComplex(y)
     if type(x) == complex:
         return fmt1 % x.real + fmt2 % x.imag + "i"
     else:
         return fmt % x
예제 #4
0
 def _fmtfunc(fmt1, fmt2, y):
     x = vsip.cscalarToComplex(y)
     if type(x) == complex:
         return fmt1 % x.real + fmt2 % x.imag + "i"
     else:
         return fmt % x