diff --git a/python/source.py b/python/source.py index 96ad721af..4ac3c0ad2 100644 --- a/python/source.py +++ b/python/source.py @@ -1019,13 +1019,14 @@ def add_source(self, sim): class GaussianBeamSource(GaussianBeam3DSource): """ - Wrapper for GaussianBeam3DSource to warn the user when running 2D simulations that this behavior is depricated and they should be using GaussianBeam2DSource. + Wrapper for GaussianBeam3DSource to warn the user when running 2D simulations that this behavior is deprecated and they should be using GaussianBeam2DSource. """ def add_source(self, sim): if sim.dimensions == 2: warnings.warn( - "GaussianBeamSource is depricated for 2D simulations. For more accurate results, use GaussianBeam2DSource instead. In the future, this will be the default behavior." + "GaussianBeamSource is deprecated for 2D simulations. For more accurate results, use GaussianBeam2DSource instead. In the future, this will be the default behavior.", + DeprecationWarning, ) super().add_source(sim)