-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check "cell" input signature in python interface #412
Comments
I also agree to raise an exception when spglib/python/spglib/spglib.py Lines 1999 to 2013 in 63a7a4b
The only thing to be discussed will be a name for the exception. For example CellError ?
|
Use standard Custom exception would be useful for convergence or internal errors. |
Indeed. |
I'll work on it. |
As raised in #411, this should be fixed by something like
not isinstance(cell, tuple) and not len(cell) in (3, 4)
as @sphuber suggested.cell
is defined at https://spglib.readthedocs.io/en/latest/python-interface.html#crystal-structure-cell. I thinkcell
can be given by list or something like that. How should we do? Do you have any idea @lan496, @LecrisUT?The text was updated successfully, but these errors were encountered: