Skip to content

Commit

Permalink
point out row and columnar data
Browse files Browse the repository at this point in the history
Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>
  • Loading branch information
nitbharambe committed Oct 16, 2024
1 parent 05d726b commit 0f27666
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/advanced_documentation/native-data-interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ The code below creates an array which is compatible with transformer input datas
from power_grid_model import ComponentType, DatasetType, power_grid_meta_data

transformer_dtype = power_grid_meta_data[DatasetType.input][ComponentType.transformer].dtype
# Array for row based data
transformer = np.empty(shape=5, dtype=transformer_dtype)
# Array for columnar data
transformer_tap_pos = np.empty(shape=5, dtype=transformer_dtype["tap_pos"])

# direct string access is supported as well:
Expand Down

0 comments on commit 0f27666

Please sign in to comment.