Skip to content

Commit

Permalink
fix: correcting shape specification for target schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
laserkelvin committed Nov 27, 2024
1 parent 6df90f1 commit 7e807ca
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions matsciml/datasets/tests/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,14 @@ def test_dataset_minimal_schema_pass():
targets=[
{
"name": "total_energy",
"shape": 0,
"shape": "0",
"description": "Total energy of the system.",
},
{"name": "forces", "shape": 3, "description": "Atomic forces per node."},
{
"name": "forces",
"shape": "*,3",
"description": "Atomic forces per node.",
},
],
split_blake2s=splits,
)
Expand All @@ -70,10 +74,14 @@ def test_dataset_minimal_schema_roundtrip():
targets=[
{
"name": "total_energy",
"shape": 0,
"shape": "0",
"description": "Total energy of the system.",
},
{"name": "forces", "shape": 3, "description": "Atomic forces per node."},
{
"name": "forces",
"shape": "*,3",
"description": "Atomic forces per node.",
},
],
split_blake2s=splits,
)
Expand Down

0 comments on commit 7e807ca

Please sign in to comment.