All Samples(848) | Call(813) | Derive(0) | Import(35)
atof(s) -> float Return the floating point number represented by the string s.
def atof(s):
"""atof(s) -> float
Return the floating point number represented by the string s.
"""
return _float(s)
import pyma27 from pysparse import spmatrix import numpy from string import strip, atof from nlpy_timing import cputime def SolveSystem( A, rhs ):
line = line.split()
pbname = strip( line[0] )
if pbname[-4:] == '.mtx': pbname = pbname[:-4]
analyze_f77[pbname] = atof(line[1])
solve_f77[pbname] = atof(line[2])
try:
line = line.split()
pbname = strip( line[0] )
if pbname[-4:] == '.mtx': pbname = pbname[:-4]
analyze_c[pbname] = atof(line[1])
solve_c[pbname] = atof(line[2])
# Plot the timings
src/t/o/Toolserver-0.4.1/samples/ServerManager.py Toolserver(Download)
import hashlib from xml.sax.handler import ContentHandler from thread import allocate_lock from string import atof, atoi from Toolserver.Tool import registerTool from Toolserver.CRAMUtils import OnlyRPCCRAMTool
(load1, load5, load15, processes, maxpid) = file.readline().split() file.close() return [self._createToken(), atof(load1), atof(load5), atof(load15), processes, atoi(maxpid) ]
(uptime1, uptime2) = file.readline().split()
file.close()
return [self._createToken(),
atof(uptime1), atof(uptime2)
]
uptime_signature = ('typens:listResult', 'typens:cramToken')
src/n/l/nlpy-HEAD/nlpy/Examples/bmark_ma27.py nlpy(Download)
import pyma27 from pysparse import spmatrix import numpy from string import strip, atof from nlpy_timing import cputime def SolveSystem( A, rhs ):
line = line.split()
pbname = strip( line[0] )
if pbname[-4:] == '.mtx': pbname = pbname[:-4]
analyze_f77[pbname] = atof(line[1])
solve_f77[pbname] = atof(line[2])
try:
line = line.split()
pbname = strip( line[0] )
if pbname[-4:] == '.mtx': pbname = pbname[:-4]
analyze_c[pbname] = atof(line[1])
solve_c[pbname] = atof(line[2])
# Plot the timings
src/n/l/nlpy-HEAD/trunk/nlpy/Examples/demo_pygltr.py nlpy(Download)
from nlpy_timing import cputime
import sys
import os
from string import strip, atof
def SpecSheet():
"""
k = strip( f90probs[i] )
if k[-4:] == '.mtx':
k = k[:-4]
t = atof( f90tmgs[i] )
t_Fortran_ref[k] = t
#try:
src/n/l/nlpy-HEAD/nlpy/Examples/demo_pygltr.py nlpy(Download)
from nlpy_timing import cputime
import sys
import os
from string import strip, atof
def SpecSheet():
"""
k = strip( f90probs[i] )
if k[-4:] == '.mtx':
k = k[:-4]
t = atof( f90tmgs[i] )
t_Fortran_ref[k] = t
#try:
src/c/a/cantera-HEAD/language_interfaces/python/examples/flames/fixed_T_flame.py cantera(Download)
from Cantera import * from Cantera.OneD import * from Cantera.OneD.BurnerFlame import BurnerFlame from string import atof # read temperature vs. position data from a file.
else:
try:
zval, tval = line.split(',')
z.append(atof(zval))
t.append(atof(tval))
except:
pass
src/u/n/uniconvertor-HEAD/UniConvertor/trunk/uniconvertor/src/app/Graphics/font.py uniconvertor(Download)
# import os, re, operator from string import split, strip, atoi, atof, lower, translate, maketrans import streamfilter
def _number(val):
return int(round(atof(val)))
converters = {
'EncodingScheme': _str,
'Ascender': _number,
'Descender': _number,
if key == 'C': code = atoi(value) elif key == 'WX': width = int(round(atof(value))) elif key == 'N': name = value elif key == 'B':
src/s/u/suiterna-HEAD/python/PDB/MMCIFParser.py suiterna(Download)
# Copyright (C) 2002, Thomas Hamelryck (thamelry@binf.ku.dk) # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. #Python stuff from string import atoi, atof, letters
structure_builder.set_anisou(anisou_array)
# Now try to set the cell
try:
a=atof(mmcif_dict["_cell.length_a"])
b=atof(mmcif_dict["_cell.length_b"])
c=atof(mmcif_dict["_cell.length_c"])
alpha=atof(mmcif_dict["_cell.angle_alpha"])
beta=atof(mmcif_dict["_cell.angle_beta"])
gamma=atof(mmcif_dict["_cell.angle_gamma"])
src/p/y/pyorder-HEAD/pyorder/tools/mtx.py pyorder(Download)
"""
import numpy as np
from string import atoi, atof
class MatrixMarketMatrix:
"""
if self.dtype == np.int:
self.values[k] = atoi(line[2])
elif self.dtype == np.float:
self.values[k] = atof(line[2])
elif self.dtype == np.complex:
self.values[k] = complex(atof(line[2]),atof(line[3]))
k += 1
src/p/r/Products.ZSQLMethods-2.13.3/src/Shared/DC/ZRDB/sqlvar.py Products.ZSQLMethods(Download)
''' from DocumentTemplate.DT_Util import ParseError, parse_params, name_param from string import atoi, atof StringType = str
if type(v) is StringType:
if v[-1:]=='L':
v=v[:-1]
atof(v)
else: v=str(float(v))
except:
if not v and args.has_key('optional') and args['optional']:
1 | 2 | 3 | 4 Next