Skip to content

Commit

Permalink
AI suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
tovrstra committed Jul 6, 2024
1 parent b5cec48 commit 37a67f1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion iodata/formats/extxyz.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,11 @@ def _parse_properties(properties: str, lit: LineIterator) -> list[tuple]:
)
splitted_properties = properties.split(":")
if len(splitted_properties) % 3 != 0:
raise LoadError(f"Cannot parse property from the title line: {properties}", lit)
raise LoadError(
f"Cannot parse property from the title line: '{properties}'. "
f"The expected format is name:dtype:shape.",
lit,
)
# Each property has 3 values: its name, dtype and shape
names = splitted_properties[::3]
dtypes = splitted_properties[1::3]
Expand Down

0 comments on commit 37a67f1

Please sign in to comment.