Skip to content

Commit

Permalink
fix setting of conductivity in objects.py (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
flaport committed Mar 27, 2023
1 parent e4a6728 commit 80d1c04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fdtd/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def __init__(
name: name of the object (will become available as attribute to the grid)
"""
super().__init__(permittivity, name)
self.conductivity = conductivity
self.conductivity = bd.array(conductivity)

def _register_grid(
self, grid: Grid, x: slice = None, y: slice = None, z: slice = None
Expand Down

0 comments on commit 80d1c04

Please sign in to comment.