fipy icon indicating copy to clipboard operation
fipy copied to clipboard

Problem in running the 'examples.phase.polyxtal'

Open WenhongQiu opened this issue 2 years ago • 1 comments

Hello,

I recently install FiPy by conda-forge with python3.7 and run the 'examples.phase.polyxtal' by copying the script from nist website. When I run this script, everything goes well at first, but after T=0.004 RuntimeWarning appears and the calculated results and the plot figures seems go wrong, for example theta become all 0.. The RuntimeWarning message are attached as follows. How can I fix such problems?

Clipping input data to the valid range for imshow with RGB data ([0..1] for floats or [0..255] for integers).

/Users//opt/anaconda3/envs/fipy_py37/lib/python3.7/site-packages/fipy/variables/modPhysicalField.py:18: RuntimeWarning: invalid value encountered in subtract return self.class(value= self.mod(self.inRadians() - other.inRadians()), unit="rad") /Users//opt/anaconda3/envs/fipy_py37/lib/python3.7/site-packages/fipy/variables/modPhysicalField.py:13: RuntimeWarning: invalid value encountered in fmod return numerix.fmod(argument + 3. * numerix.pi, 2. * numerix.pi) - numerix.pi

WenhongQiu avatar May 23 '22 04:05 WenhongQiu

ok, this problem is fixed, as I found such issue has been raised in #770 and already fixed by guyer. So I re-install fipy directly via git rather than via conda-forge. then I re-run the example and find it works! so the fipy package is still not update in conda-forge yet?

WenhongQiu avatar May 24 '22 06:05 WenhongQiu