fixed uc bug
This commit is contained in:
@@ -38,7 +38,7 @@ def scrub_cells( 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"
|
||||||
cell_lst = re.findall( pattern, stream )
|
cell_lst = re.findall( pattern, stream )
|
||||||
xtals = len( cell_lst )
|
xtals = len( cell_lst )
|
||||||
if AttributeError:
|
if AttributeError:
|
||||||
|
|||||||
Reference in New Issue
Block a user