fix(simulator): add default value for no parameters

This commit is contained in:
Anthony Berg 2025-07-01 00:11:31 +02:00
parent a77c3786e5
commit 2241da1532

View File

@ -42,10 +42,17 @@ class BoundaryCondition(object):
Periodic = 2,
Reflective = 3
def __init__(self, types: dict[str: Type.Reflective]):
def __init__(self, types: dict[str: Type.Reflective]=None):
"""
Constructor
"""
if types is None:
types = {
'north': self.Type.Reflective,
'south': self.Type.Reflective,
'east': self.Type.Reflective,
'west': self.Type.Reflective
}
self.north = types['north']
self.south = types['south']