Skip to content

Commit

Permalink
explicit transfer of the interface instance args into the substrate i…
Browse files Browse the repository at this point in the history
…nstance
  • Loading branch information
ghislainp committed Mar 2, 2023
1 parent 5229526 commit 4b4b6a5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions smrt/core/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ def __init__(self, temperature=None, permittivity_model=None, **kwargs):
SubstrateBase.__init__(self, temperature=temperature, permittivity_model=permittivity_model)
# create an interface instance
self.interface_inst = interface_cls(**kwargs)
# transfer the interface_instance's args and optional args here
for k in self.interface_inst.args:
setattr(self, k, getattr(self.interface_inst, k))
for k in self.interface_inst.optional_args:
setattr(self, k, getattr(self.interface_inst, k))

def specular_reflection_matrix(self, frequency, eps_1, mu1, npol):

Expand Down

0 comments on commit 4b4b6a5

Please sign in to comment.