Skip to content

Infinite phase screen numerical error in Linux environment #107

@JXH-666

Description

@JXH-666

Problem description:

After using aotools.turbulence.initephasescreen.PhaseScreenVonKarman to generate an infinite phase screen, call the add_row function, and more and more dense noise will appear on one side of the phase screen. This issue persists in Linux environment, in Windows it is normal.

Python 3.12.9 Environment:

aotools==1.0.7
astropy==7.0.2
cupy_cuda11x==13.4.1
matplotlib==3.10.3
numpy==2.2.5
pandas==2.2.3
Pillow==11.2.1
scikit_learn==1.7.0
scipy==1.15.3
scikit-image==0.25.2
tqdm==4.67.1
xarray==2025.4.0
pyfftw==0.15.0

Tried but not useful methods:

  1. Miniconda issue. Anaconda may contain more underlying code, so an attempt was made to install it, but it was unsuccessful.
  2. pyfftw issue. May be linux wrongly used the FFT method? So I tried to update PYFFTW library, but it still doesn't work.
  3. numpy library version issue. Use numpy = 1.26.3, not useful.
  4. TBB warning issue. It froms a warning in Linux: "NumbaWarning: The TBB threading layer requires TBB version 2021 update 6 or later i.e., TBB_INTERFACE_VERSION >= 12060. Found TBB_INTERFACE_VERSION = 12050. The TBB threading layer is disabled." I tride upgrade tbb by pip.
  5. numba parallel computing issue. tried to use "import os os.environ['NUMBA_DISABLE_JIT'] = '1' ", not useful.

Image is:

Image

Test Programm attached:

FTT_LE_TEST.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions