#35: float(&infinity&) issue on windows
---------------------+------------------------------------------------------
Reporter: wd15 | Owner: jguyer
Type: defect | Status: assigned
Priority: 5 | Component: None
Version: HEAD | Severity: Bugs
Resolution: None | Keywords:
---------------------+------------------------------------------------------
Changes (by guyer):
* type: => defect
Old description:
> {{{
> Got the following float(&infinity&) error running test cases on windows.
> ========================================= =============================
> ERROR: doctest of examples.elphf.phase.input1D
> ----------------------------------------------------------------------
> Traceback (most recent call last): File &C:\python23\lib\unittest.py&,
> line 423, in runTest self.__testFunc() File &C:\python23\lib\doctest.py&,
> line 1359, in runit _utest(tester, name, doc, filename, lineno) File
> &C:\python23\lib\doctest.py&, line 1309, in _utest raise
> DocTestTestFailure('Failed doctest test for %s\n' DocTestTestFailure:
> Failed doctest test for examples.elphf.phase.input1D File &C:\Documents
> and Settings\wd15\My Documents\fipy\HEAD\examples\elphf\ph
> se\input1D.py&, line 1 (or above), in input1D
> ***************************************************************** Failure
> in example: parameters = { 'time step duration': 10000, 'phase': {
> 'name': &xi&, 'mobility': float(&infinity&), 'gradient energy': 0.025,
> 'value': 1. }, 'solvent': { 'standard potential': 0., 'barrier height':
> 1. } } from line #36 of examples.elphf.phase.input1D Exception raised:
> Traceback (most recent call last): File &C:\python23\lib\doctest.py&,
> line 442, in _run_examples_inner compileflags, 1) in globs File
> &<string>&, line 1, in ? ValueError: invalid literal for float():
> infinity
> *****************************************************************
> }}}
New description:
Got the following float(&infinity&) error running test cases on windows.
{{{
======================================================================
ERROR: doctest of examples.elphf.phase.input1D
----------------------------------------------------------------------
Traceback (most recent call last): File &C:\python23\lib\unittest.py&,
line 423, in runTest self.__testFunc() File &C:\python23\lib\doctest.py&,
line 1359, in runit _utest(tester, name, doc, filename, lineno) File
&C:\python23\lib\doctest.py&, line 1309, in _utest raise
DocTestTestFailure('Failed doctest test for %s\n'
DocTestTestFailure: Failed doctest test for examples.elphf.phase.input1D
File &C:\Documents and Settings\wd15\My
Documents\fipy\HEAD\examples\elphf\ph se\input1D.py&, line 1 (or above),
in input1D
*****************************************************************
Failure in example: parameters = { 'time step duration': 10000, 'phase': {
'name': &xi&, 'mobility': float(&infinity&), 'gradient energy': 0.025,
'value': 1. }, 'solvent': { 'standard potential': 0., 'barrier height': 1.
} } from line #36 of examples.elphf.phase.input1D
Exception raised: Traceback (most recent call last): File
&C:\python23\lib\doctest.py&, line 442, in _run_examples_inner
compileflags, 1) in globs File &<string>&, line 1, in ?
ValueError: invalid literal for float(): infinity
*****************************************************************
}}}
--
Ticket URL: <https://www.matforge.org/fipy/ticket/35#comment:1>
FiPy <http://www.ctcms.nist.gov/fipy>
A Finite Volume PDE Solver Using Python