Skip to content

Commit 9cefcdf

Browse files
authored
Apply suggestion from @Thijss
Signed-off-by: Thijs Baaijen <[email protected]>
1 parent 79ad8b7 commit 9cefcdf

File tree

1 file changed

+1
-1
lines changed
  • src/power_grid_model_ds/_core/model/arrays/base

1 file changed

+1
-1
lines changed

src/power_grid_model_ds/_core/model/arrays/base/array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,4 +332,4 @@ def from_extended(cls: Type[Self], extended: Self) -> Self:
332332
if not isinstance(extended, cls):
333333
raise TypeError(f"Extended array must be of type {cls.__name__}, got {type(extended).__name__}")
334334
dtype = cls.get_dtype()
335-
return cls(data=np.array(extended.data[list(dtype.names)], dtype=dtype))
335+
return cls(data=np.array(extended[list(dtype.names)], dtype=dtype))

0 commit comments

Comments
 (0)