Hi Amir,
Thank you for reaching out to us. Just to clarify, which of the following two are you trying to do through the scripts? Run the whole analysis and obtain a list of modes (and their refractive index), or just access the effective index of a given mode?
Kind Regards,
Niki