Skip to content

v0.3.0

Choose a tag to compare

@NobuhiroMoteki NobuhiroMoteki released this 09 Mar 06:39
· 115 commits to main since this release

Changes from Previous Version v0.2.x

Algorithm

Module Old New
mvp_fft/mvp_fft.py Barrowes (2001) asymmetric multilevel block-Toeplitz FFT Goodman (1991) 3D FFT on doubled grid (2Nx,2Ny,2Nz,3,3)
bl_krylov/bl_krylov.py ray-based multiprocessing parallelization NumPy/SciPy broadcasting — fully vectorized, no external parallelism
shape_model/gaussian_ellipsoid.py numba JIT-compiled nested loops Pure NumPy cumsum-based interior detection

Parameter sweep (run_dda.py + dda_results/)

Item Old New
Wavelength / medium RI Single wl_0 + list of m_m List of (wl_0, m_m) pairs: wl_m_m_pairs
Particle RI Single m_p_xyz List of m_p_xyz: m_p_xyz_list (supports anisotropic sweep)
GRE geometry reuse Rebuilt for every (wl, m_m, m_p) Built once per shape; reused across all wavelength/RI combinations
HDF5 dataset shape (N_mm, N_rv, N_bc, N_ab, N_bt, N_ori) (N_pairs, N_mp, N_rv, N_bc, N_ab, N_bt, N_ori)

Dependencies

Package Status
ray Removed (replaced by NumPy broadcasting)
numba Removed (replaced by pure NumPy)
pywin32 Removed (Windows-only)
scipy Retained — scipy.fft (multi-threaded FFT), scipy.spatial.transform (batch rotation)
scikit-learn Retained — KDTree for lattice neighbor search
ipympl Added — interactive 3D plots in notebooks

Environment

  • Python: 3.12 (Windows) → 3.13 (Linux/WSL2)
  • Virtual environment: myenv (Windows) → .venv (Linux, managed by uv)