Option: use average materials

By default (since release 24), the refractive properties of material layers are computed by taking the average of the matrix material and the embedded particles. This behavior can be disabled by setting

simulation.options().setUseAvgMaterials(False)