Commit 97f3c575 authored by Aaron Jones's avatar Aaron Jones

Modified BeamParam to allow inheritance while still producing warnings for the...

Modified BeamParam to allow inheritance while still producing warnings for the depracted methods gauss_param and beam_param
parent 28f1eaff
......@@ -35,7 +35,7 @@ class BeamParam(object):
"""
def __init__(self, wavelength=1064e-9, nr=1, *args, **kwargs):
if self.__class__ != BeamParam:
if self.__class__ == gauss_param or self.__class__ == beam_param:
warnings.warn("Name changed. Use BeamParam instead of gauss_param or beam_param.")
self.__q = None
......@@ -743,4 +743,4 @@ class gauss_param(BeamParam):
pass
class beam_param(BeamParam):
pass
\ No newline at end of file
pass
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment