proper return value when lacking lattice information
This commit is contained in:
parent
926d86935f
commit
934835f93c
|
@ -565,9 +565,9 @@ class Crystal():
|
|||
self.family == other.family)
|
||||
|
||||
@property
|
||||
def parameters(self) -> Tuple:
|
||||
def parameters(self) -> Optional[Tuple]:
|
||||
"""Return lattice parameters a, b, c, alpha, beta, gamma."""
|
||||
return (self.a,self.b,self.c,self.alpha,self.beta,self.gamma) if hasattr(self,'a') else ()
|
||||
return (self.a,self.b,self.c,self.alpha,self.beta,self.gamma) if hasattr(self,'a') else None
|
||||
|
||||
@property
|
||||
def immutable(self) -> Dict[str, float]:
|
||||
|
|
Loading…
Reference in New Issue