Skip to content

Commit

Permalink
Demand int32 type for node index when importing vmap data.
Browse files Browse the repository at this point in the history
This change was necessary as pandas-2.0.0 will handle the dtype for pd.Index
correctly.

Signed-off-by: Johannes Mueller <johannes.mueller4@de.bosch.com>
  • Loading branch information
johannes-mueller committed Feb 1, 2023
1 parent e5e05ae commit 3863d06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/vmap/reference_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
[5., 30., 0.],
[10., 30., 0.]]),
columns=['x', 'y', 'z'],
index=pd.Index(np.arange(1, 19), name="node_id")
index=pd.Index(np.arange(1, 19), name="node_id", dtype=np.int32)
)

beam_2d_squ_mesh_index = pd.MultiIndex.from_arrays(
Expand Down

0 comments on commit 3863d06

Please sign in to comment.