Added new requested modifications.
Function name changed from getCoatBrownian to getCoatBrownianHong. Also, a new calling funtion coatbrownianhong is created to be used in place of coatbrownian. Previous comments about need for new variables in parameter file still are relevant. But now the code can not be run without them. I'll leave choice of variable names to maintainers. Finally, the loss angles can be provided as string containing valid python expression in a single variable 'f'. The code has been tested separately on local computer and runs fine.
master in 4 minutes and 30 seconds (queued for 7 seconds)3 jobs for