@@ -115,9 +115,7 @@ def graspa_batch_setup(
115115 cutoff = cutoff ,
116116 n_cycle = cycles ,
117117 )
118- click .echo (
119- f"Set up { len (manifest )} simulations in { outdir } "
120- )
118+ click .echo (f"Set up { len (manifest )} simulations in { outdir } " )
121119 click .echo (f"Manifest written to { outdir } /simulations.jsonl" )
122120 except Exception as e :
123121 click .echo (f"Error setting up batch simulations: { e } " , err = True )
@@ -626,14 +624,10 @@ def mlip_cli():
626624@click .option (
627625 "--run-type" ,
628626 default = "geo_opt" ,
629- type = click .Choice (
630- ["geo_opt" , "cell_opt" , "geo_opt_cell_opt" ]
631- ),
627+ type = click .Choice (["geo_opt" , "cell_opt" , "geo_opt_cell_opt" ]),
632628 help = "Optimization type." ,
633629)
634- @click .option (
635- "--steps" , default = 1000 , help = "Max optimization steps."
636- )
630+ @click .option ("--steps" , default = 1000 , help = "Max optimization steps." )
637631@click .option (
638632 "--fmax" ,
639633 default = 1e-3 ,
@@ -722,14 +716,10 @@ def mace_opt_cmd(
722716@click .option (
723717 "--run-type" ,
724718 default = "geo_opt" ,
725- type = click .Choice (
726- ["geo_opt" , "cell_opt" , "geo_opt_cell_opt" ]
727- ),
719+ type = click .Choice (["geo_opt" , "cell_opt" , "geo_opt_cell_opt" ]),
728720 help = "Optimization type." ,
729721)
730- @click .option (
731- "--steps" , default = 1000 , help = "Max optimization steps."
732- )
722+ @click .option ("--steps" , default = 1000 , help = "Max optimization steps." )
733723@click .option (
734724 "--fmax" ,
735725 default = 1e-3 ,
@@ -743,9 +733,7 @@ def mace_opt_cmd(
743733@click .option (
744734 "--task-name" ,
745735 default = "omat" ,
746- type = click .Choice (
747- ["omat" , "oc20" , "oc22" , "oc25" , "omol" , "odac" , "omc" ]
748- ),
736+ type = click .Choice (["omat" , "oc20" , "oc22" , "oc25" , "omol" , "odac" , "omc" ]),
749737 help = "Task head for domain-specific prediction." ,
750738)
751739@click .option (
@@ -817,9 +805,7 @@ def uma_opt_cmd(
817805@click .option (
818806 "--task-name" ,
819807 default = "omat" ,
820- type = click .Choice (
821- ["omat" , "oc20" , "oc22" , "oc25" , "omol" , "odac" , "omc" ]
822- ),
808+ type = click .Choice (["omat" , "oc20" , "oc22" , "oc25" , "omol" , "odac" , "omc" ]),
823809 help = "Task head for domain-specific prediction." ,
824810)
825811@click .option (
@@ -865,9 +851,7 @@ def uma_sp_cmd(fname, model, task_name, device):
865851@click .option (
866852 "--task-name" ,
867853 default = "omat" ,
868- type = click .Choice (
869- ["omat" , "oc20" , "oc22" , "oc25" , "omol" , "odac" , "omc" ]
870- ),
854+ type = click .Choice (["omat" , "oc20" , "oc22" , "oc25" , "omol" , "odac" , "omc" ]),
871855 help = "Task head for domain-specific prediction." ,
872856)
873857@click .option (
@@ -886,9 +870,7 @@ def uma_sp_cmd(fname, model, task_name, device):
886870 default = 1.0 ,
887871 help = "MD timestep in femtoseconds." ,
888872)
889- @click .option (
890- "--steps" , default = 1000 , help = "Number of MD steps."
891- )
873+ @click .option ("--steps" , default = 1000 , help = "Number of MD steps." )
892874@click .option (
893875 "--ensemble" ,
894876 default = "nvt" ,
@@ -985,22 +967,16 @@ def uma_md_cmd(
985967 "run_types" ,
986968 multiple = True ,
987969 default = ["geo_opt" ],
988- type = click .Choice (
989- ["geo_opt" , "cell_opt" , "geo_opt_cell_opt" ]
990- ),
970+ type = click .Choice (["geo_opt" , "cell_opt" , "geo_opt_cell_opt" ]),
991971 help = "Optimization type(s). Can be specified multiple times." ,
992972)
993973@click .option (
994974 "--task-name" ,
995975 default = "omat" ,
996- type = click .Choice (
997- ["omat" , "oc20" , "oc22" , "oc25" , "omol" , "odac" , "omc" ]
998- ),
976+ type = click .Choice (["omat" , "oc20" , "oc22" , "oc25" , "omol" , "odac" , "omc" ]),
999977 help = "Task head for domain-specific prediction." ,
1000978)
1001- @click .option (
1002- "--steps" , default = 1000 , help = "Max optimization steps."
1003- )
979+ @click .option ("--steps" , default = 1000 , help = "Max optimization steps." )
1004980@click .option (
1005981 "--fmax" ,
1006982 default = 1e-3 ,
@@ -1138,8 +1114,17 @@ def zeopp_cli():
11381114 type = click .Path (),
11391115 help = "Output directory for result files." ,
11401116)
1141- def zeopp_run (cif , analysis , probe_radius , chan_radius , num_samples ,
1142- ha , radii , network_path , outdir ):
1117+ def zeopp_run (
1118+ cif ,
1119+ analysis ,
1120+ probe_radius ,
1121+ chan_radius ,
1122+ num_samples ,
1123+ ha ,
1124+ radii ,
1125+ network_path ,
1126+ outdir ,
1127+ ):
11431128 """Run Zeo++ analysis on a CIF structure."""
11441129 from matkit .zeopp import run_zeopp
11451130
@@ -1244,9 +1229,16 @@ def zeopp_analyze(path, analysis):
12441229 help = "Max parallel processes. Default: CPU count." ,
12451230)
12461231def zeopp_run_batch (
1247- cif_dir , outdir , analysis , probe_radius ,
1248- chan_radius , num_samples , ha , radii ,
1249- network_path , max_workers ,
1232+ cif_dir ,
1233+ outdir ,
1234+ analysis ,
1235+ probe_radius ,
1236+ chan_radius ,
1237+ num_samples ,
1238+ ha ,
1239+ radii ,
1240+ network_path ,
1241+ max_workers ,
12501242):
12511243 """Run Zeo++ on all CIFs in a directory.
12521244
0 commit comments