Skip to content

Commit 747fdce

Browse files
bugs
1 parent b9a4ad4 commit 747fdce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tidy3d/components/data/dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ def current_density(self) -> ElectromagneticSurfaceFieldDataset:
360360
if template is None:
361361
raise ValueError("Could not calculate current density: the dataset does not contain H field information.")
362362

363-
return template.updated_copy(xr.cross(h_diff, self.normal.values, dim="axis"))
363+
return template.updated_copy(values=xr.cross(h_diff, self.normal.values, dim="axis"))
364364

365365
@property
366366
def grid_locations(self) -> Dict[str, str]:

0 commit comments

Comments
 (0)