regenerate_mmi
- si_fab.components.mmi.regeneration.regen_utils.regenerate_mmi(mmi_class, wavelengths, center_wavelength=1.55, resimulate=True, plot=True)
It regenerates the simulation fitting data and/or the plots of the optimized MMI.
- Parameters:
- mmi_class
PCell class of the MMI to resimulate or replot
- wavelengthsndarray
Numpy array of the wavelength range for the simulation and for the plots
- center_wavelengthfloat, optional, default=1.55
Center wavelength of the component
- resimulateboolean, optional, default=True
If True, it runs the CAMFR simulation of mmi_class, performs a fitting of the transmission as a function of wavelength and stores the fitting coefficients in data/component_name.json
- plotboolean, optional, default=True