@@ -17,25 +17,23 @@ def main() -> None:
1717 validation = (
1818 pb .Validate (
1919 data = atoms ,
20- tbl_name = "atoms_from_parser " ,
21- label = "Round-trip validation before re-export " ,
20+ tbl_name = "atoms " ,
21+ label = "Atom data validation " ,
2222 thresholds = pb .Thresholds (warning = 0.02 , error = 0.05 , critical = 0.07 ),
2323 )
2424 .col_vals_in_set (columns = "symbol" , set = VALID_ELEMENTS )
2525 .col_vals_not_null (columns = ["x" , "y" , "z" ])
2626 .col_vals_between (columns = ["x" , "y" , "z" ], left = 0 , right = 20 )
27- .col_vals_between (columns = "fx" , left = - 1000 , right = 1000 )
27+ .col_vals_between (columns = [ "fx" , "fy" , "fz" ] , left = - 1000 , right = 1000 )
2828 .interrogate ()
2929 )
3030
3131 clean = validation .get_sundered_data (type = "pass" )
3232 dirty = validation .get_sundered_data (type = "fail" )
3333
34- print (f"Safe to re-export: { len (clean )} rows" )
35- print (f"Needs review: { len (dirty )} rows" )
36- print ("\n Clean rows" )
34+ print (f"Clean rows: { len (clean )} " )
3735 print (clean .select (["atom_id" , "symbol" , "x" , "fx" ]))
38- print ("\n Dirty rows" )
36+ print (f "\n Dirty rows: { len ( dirty ) } " )
3937 print (dirty .select (["atom_id" , "symbol" , "x" , "fx" ]))
4038
4139
0 commit comments