fixed unit cell bug
This commit is contained in:
@@ -77,7 +77,7 @@ def scrub_us( stream ):
|
|||||||
# example - Cell parameters 7.71784 7.78870 3.75250 nm, 90.19135 90.77553 90.19243 deg
|
# example - Cell parameters 7.71784 7.78870 3.75250 nm, 90.19135 90.77553 90.19243 deg
|
||||||
# scrub clen and return - else nan
|
# scrub clen and return - else nan
|
||||||
try:
|
try:
|
||||||
pattern = r"Cell\sparameters\s(\d\.\d+)\s(\d\.\d+)\s(\d\.\d+)\snm,\s(\d+\.\d+)\s(\d+\.\d+)\s(\d+\.\d+)\sdeg"
|
pattern = r"Cell\sparameters\s(\d+\.\d+)\s(\d+\.\d+)\s(\d+\.\d+)\snm,\s(\d+\.\d+)\s(\d+\.\d+)\s(\d+\.\d+)\sdeg"
|
||||||
cells = re.findall( pattern, stream )
|
cells = re.findall( pattern, stream )
|
||||||
if AttributeError:
|
if AttributeError:
|
||||||
return cells
|
return cells
|
||||||
|
|||||||
Reference in New Issue
Block a user