Content-Length: 212669 | pFad | http://github.com/pyscripter/python4delphi/wiki/MaskFPUExceptions

25 MaskFPUExceptions · pyscripter/python4delphi Wiki · GitHub
Skip to content
pyscripter edited this page Feb 27, 2021 · 3 revisions

Masking FPU Exceptions

Delphi raises an exception when floating operations result produce +/- infinity (e.g. division by zero). This setting is not compatible with a number of Python libraries such as numpy and scipy.

Python for Delphi provides a procedure MaskFPUExceptions that can help resolve such issues. If you get errors when using python libraries you make want to take the following statement:

 MaskFPUExceptions(True)

to either the initialization section of any unit or to the OnBeforeLoad event handler of the PythonEngine.

See also How Python for Delphi finds your Python distribution for information about PythonEngine properties that affect the loading of Python.

Clone this wiki locally








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/pyscripter/python4delphi/wiki/MaskFPUExceptions

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy