ProjectConfig#
- class lumopt2.core.project_config.ProjectConfig(configurator: Callable | str, filename_suffix: str)#
A class used to modify the base simulation in the Project. ProjectConfig objects will be owned by a SimulationResults object.
- Parameters:
- configurator
Callableorstr A callable that takes the FDTD object and modifies the simulation, or a string path to a .lsf script file that will be executed. If it’s a callable, it should have the signature:
>>> def my_config_function(fdtd: lumapi.FDTD) -> None:
- filename_suffix
str A string suffix to add to the filenames of saved project files (not optional).
- configurator
- Attributes:
Methods
ProjectConfig.apply(sim)Apply the configuration to fresh copy of the base FDTD simulation.