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)
|
self.family == other.family)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def parameters(self) -> Tuple:
|
def parameters(self) -> Optional[Tuple]:
|
||||||
"""Return lattice parameters a, b, c, alpha, beta, gamma."""
|
"""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
|
@property
|
||||||
def immutable(self) -> Dict[str, float]:
|
def immutable(self) -> Dict[str, float]:
|
||||||
|
|
Loading…
Reference in New Issue