Skip to content
Snippets Groups Projects
Commit 090135b0 authored by Koerber, Lukas (FWIN-C) - 108045's avatar Koerber, Lukas (FWIN-C) - 108045
Browse files

Introduce public antenna property and setter, checks if input is of type MicrowaveAntenna.

parent 741d3dcd
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,17 @@ class ExperimentalSetup:
else:
print("You are trying to set an external field which does not match the shape of the mesh.")
@property
def antenna(self):
return self.antenna
@antenna.setter
def antenna(self, value):
if isinstance(value, MicrowaveAntenna):
self._antenna = value
else:
raise ValueError(f'Input {value} is not of type "MicrowaveAntenna"')
def show(self, comp="vec", scale=5, show_antenna=True):
plot = k3d.plot()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment