"illum_ldactools.py": Added calculations before fitting function.