Commit 4d4698f0 authored by Christoph Groth's avatar Christoph Groth
Browse files

reformulate message of previous commit

parent 6adf7afd
...@@ -1071,7 +1071,7 @@ class Builder(object): ...@@ -1071,7 +1071,7 @@ class Builder(object):
the leads are numbered in the order in which they are attached. the leads are numbered in the order in which they are attached.
""" """
if self.symmetry.num_directions: if self.symmetry.num_directions:
raise ValueError("Can only attach leads to finite systems") raise ValueError("Leads can only be attached to finite systems.")
if add_cells < 0 or int(add_cells) != add_cells: if add_cells < 0 or int(add_cells) != add_cells:
raise ValueError('add_cells must be an integer >= 0.') raise ValueError('add_cells must be an integer >= 0.')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment