Hi Raymundo, Thanks for the email. The first test always fails and we have never been able to fix it. It may not even be a desired behaviour. We should just remove the test at this point.
I tested STABLE and didn't get the second test failure. I remember that failure being some sort of intermittent problem. I think we fixed it, but you will probably have to update to trunk to get the fix. I assume you were just running "python setup.py test" with no flags. Alternatively, if the problem doesn't show up in your scripts then I wouldn't worry about the failure. There might be an argument for fixing this problem for 1.2. Jon, do you remember the fix for this? Is it this business? <https://www.matforge.org/fipy/browser/trunk/fipy/variables/variable.py#L640> STABLE doesn't have this fix. <https://www.matforge.org/fipy/browser/tags/STABLE/fipy/variables/variable.py#L687> On 9/25/07, Raymundo Arroyave <[EMAIL PROTECTED]> wrote: > > I was able to install fipy. The tests ran ok, except for two of them. > > One had to do with fipy.variables.variable.Variable.__array > > /"Failed example: > numerix.array([Variable(0), Variable(0)]) > Exception raised: > Traceback (most recent call last): > File "doctest.py", line 1212, in __run > compileflags, 1) in test.globs > File "<doctest fipy.variables.variable.Variable.__array__[4]>", > line 1, in <module> > numerix.array([Variable(0), Variable(0)]) > ValueError: setting an array element with a sequence./ > " > > The other failure: > > File "/home/rarroyave/STABLE/examples/phase/binary.py", line 6, in binary > > /Failed example: > for i in range(100): > phase.updateOld() > C.updateOld() > phaseRes = 1e+10 > diffRes = 1e+10 > while phaseRes > 1e-3 or diffRes > 1e-3: > phaseRes = phaseEq.sweep(var=phase, dt=dt) > diffRes = diffusionEq.sweep(var=C, dt=dt, solver=solver) > if __name__ == '__main__': > viewer.plot() > Exception raised: > Traceback (most recent call last): > File "doctest.py", line 1212, in __run > compileflags, 1) in test.globs > File "<doctest examples.phase.binary[88]>", line 7, in <module> > phaseRes = phaseEq.sweep(var=phase, dt=dt) > File "/home/rarroyave/STABLE/fipy/terms/term.py", line 153, in sweep > self._solveLinearSystem(var, solver, matrix, RHSvector) > File "/home/rarroyave/STABLE/fipy/terms/term.py", line 103, in > _solveLinearSystem > var[:] = array > File "/home/rarroyave/STABLE/fipy/variables/variable.py", line > 446, in __setitem__ > self._markFresh() > File "/home/rarroyave/STABLE/fipy/variables/variable.py", line > 693, in _markFresh > self.__markStale() > File "/home/rarroyave/STABLE/fipy/variables/variable.py", line > 689, in __markStale > subscriber()._markStale() > AttributeError: 'NoneType' object has no attribute '_markStale'/ > > > Any ideas? > > Thanks > > > -- Daniel Wheeler
