Skip to content

Commit

Permalink
Improve Error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jic198 committed Sep 26, 2023
1 parent 3c4bbfd commit a85f575
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aimsgb/grain_bound.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,10 +468,10 @@ def __init__(self, axis, sigma, plane, initial_struct, uc_a=1, uc_b=1):
if self.plane in v:
self.csl = self.gb_info[self.sigma]["CSL matrix"][i]
if self.csl is None:
avail_plane = ", ".join([", ".join([" ".join(map(str, j)) for j in i])
avail_plane = "', '".join(["', '".join([" ".join(map(str, j)) for j in i])
for i in self.gb_info[self.sigma]["GB plane"]])
raise ValueError(f"The given GB plane '{self.plane_str}' cannot be realized. Choose "
f"the plane in [{avail_plane}]")
f"the plane in ['{avail_plane}']")
self.direction = None
for i, v in enumerate(self.csl.transpose()):
if self.plane == list(v):
Expand Down

0 comments on commit a85f575

Please sign in to comment.