Auto3D 3.2.3__tar.gz → 3.2.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (247) hide show
  1. {auto3d-3.2.3/src/Auto3D.egg-info → auto3d-3.2.4}/PKG-INFO +4 -4
  2. {auto3d-3.2.3 → auto3d-3.2.4}/README.md +2 -2
  3. {auto3d-3.2.3 → auto3d-3.2.4}/pyproject.toml +6 -2
  4. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/engines/models/availability.py +36 -2
  5. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/presentation/cli/commands/run.py +10 -4
  6. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/presentation/cli/config_schema.py +32 -5
  7. {auto3d-3.2.3 → auto3d-3.2.4/src/Auto3D.egg-info}/PKG-INFO +4 -4
  8. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D.egg-info/requires.txt +3 -1
  9. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_auto3Dcli.py +4 -0
  10. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_cli_app.py +19 -0
  11. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_cli_exit_codes.py +101 -3
  12. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_cli_property_commands.py +8 -0
  13. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_compile_values.py +11 -0
  14. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_config.py +3 -0
  15. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_custom_nnp_contract.py +5 -0
  16. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_import_boundaries.py +7 -0
  17. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_layer_boundaries.py +5 -0
  18. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_model_factory.py +7 -0
  19. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_no_aimnet.py +49 -0
  20. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_packaging_metadata.py +53 -0
  21. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_public_api.py +8 -0
  22. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_workflow.py +3 -0
  23. {auto3d-3.2.3 → auto3d-3.2.4}/LICENSE +0 -0
  24. {auto3d-3.2.3 → auto3d-3.2.4}/MANIFEST.in +0 -0
  25. {auto3d-3.2.3 → auto3d-3.2.4}/setup.cfg +0 -0
  26. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/__init__.py +0 -0
  27. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/domain/__init__.py +0 -0
  28. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/domain/clash_relief.py +0 -0
  29. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/domain/conformer_budget.py +0 -0
  30. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/domain/connectivity.py +0 -0
  31. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/domain/convergence.py +0 -0
  32. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/domain/embedding.py +0 -0
  33. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/domain/energy.py +0 -0
  34. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/domain/filtering.py +0 -0
  35. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/domain/geometry.py +0 -0
  36. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/domain/id_mapping.py +0 -0
  37. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/domain/multiplicity.py +0 -0
  38. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/domain/ranking.py +0 -0
  39. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/domain/stereo_check.py +0 -0
  40. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/domain/stereochemistry.py +0 -0
  41. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/domain/stereochemistry_smiles.py +0 -0
  42. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/engines/__init__.py +0 -0
  43. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/engines/batch_opt/__init__.py +0 -0
  44. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/engines/batch_opt/batchopt.py +0 -0
  45. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/engines/batch_opt/fire_optimizer.py +0 -0
  46. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/engines/batch_opt/model_wrapper.py +0 -0
  47. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/engines/batch_opt/optimization_engine.py +0 -0
  48. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/engines/batch_opt/padding.py +0 -0
  49. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/engines/isomers/__init__.py +0 -0
  50. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/engines/isomers/base.py +0 -0
  51. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/engines/isomers/factory.py +0 -0
  52. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/engines/isomers/omega.py +0 -0
  53. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/engines/isomers/rdkit_sdf.py +0 -0
  54. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/engines/isomers/rdkit_smi.py +0 -0
  55. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/engines/isomers/tautomers.py +0 -0
  56. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/engines/model_factory.py +0 -0
  57. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/engines/models/__init__.py +0 -0
  58. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/engines/models/adapter/__init__.py +0 -0
  59. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/engines/models/adapter/aimnet2.py +0 -0
  60. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/engines/models/adapter/ani.py +0 -0
  61. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/engines/models/adapter/base.py +0 -0
  62. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/engines/models/adapter/compiling.py +0 -0
  63. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/engines/models/adapter/custom.py +0 -0
  64. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/engines/models/adapter/validation.py +0 -0
  65. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/engines/models/ani2xt.py +0 -0
  66. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/engines/models/ani2xt_no_repulsion.pt +0 -0
  67. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/engines/models/contract.py +0 -0
  68. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/engines/models/loading.py +0 -0
  69. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/engines/models/policy.py +0 -0
  70. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/engines/models/preflight.py +0 -0
  71. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/engines/models/species.py +0 -0
  72. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/engines/torch_config.py +0 -0
  73. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/entry/ASE/__init__.py +0 -0
  74. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/entry/ASE/geometry.py +0 -0
  75. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/entry/ASE/thermo/__init__.py +0 -0
  76. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/entry/ASE/thermo/calculator.py +0 -0
  77. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/entry/ASE/thermo/driver.py +0 -0
  78. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/entry/ASE/thermo/properties.py +0 -0
  79. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/entry/ASE/thermo/vibrations.py +0 -0
  80. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/entry/SPE.py +0 -0
  81. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/entry/__init__.py +0 -0
  82. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/entry/_run_setup.py +0 -0
  83. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/entry/auto3D.py +0 -0
  84. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/entry/tautomer.py +0 -0
  85. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/foundation/__init__.py +0 -0
  86. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/foundation/config.py +0 -0
  87. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/foundation/constants.py +0 -0
  88. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/foundation/exceptions.py +0 -0
  89. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/foundation/process_lifecycle.py +0 -0
  90. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/foundation/registry.py +0 -0
  91. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/foundation/results.py +0 -0
  92. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/foundation/utils/__init__.py +0 -0
  93. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/foundation/utils/atomic_io.py +0 -0
  94. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/foundation/utils/logging_config.py +0 -0
  95. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/foundation/utils/molprops.py +0 -0
  96. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/foundation/utils/output_guard.py +0 -0
  97. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/foundation/utils/output_names.py +0 -0
  98. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/foundation/utils/reconciliation.py +0 -0
  99. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/foundation/utils/sdf_io.py +0 -0
  100. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/foundation/utils/smi_io.py +0 -0
  101. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/orchestration/__init__.py +0 -0
  102. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/orchestration/chunk_manager.py +0 -0
  103. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/orchestration/finalize.py +0 -0
  104. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/orchestration/job_layout.py +0 -0
  105. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/orchestration/pipeline/__init__.py +0 -0
  106. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/orchestration/pipeline/input_checks.py +0 -0
  107. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/orchestration/processors.py +0 -0
  108. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/orchestration/run_logging.py +0 -0
  109. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/orchestration/supervisor.py +0 -0
  110. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/orchestration/workflow.py +0 -0
  111. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/orchestration/workflow_workers.py +0 -0
  112. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/presentation/__init__.py +0 -0
  113. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/presentation/auto3Dcli.py +0 -0
  114. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/presentation/cli/__init__.py +0 -0
  115. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/presentation/cli/app.py +0 -0
  116. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/presentation/cli/commands/__init__.py +0 -0
  117. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/presentation/cli/commands/config.py +0 -0
  118. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/presentation/cli/commands/models.py +0 -0
  119. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/presentation/cli/commands/properties.py +0 -0
  120. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/presentation/cli/commands/validate.py +0 -0
  121. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/presentation/cli/console.py +0 -0
  122. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/presentation/cli/errors.py +0 -0
  123. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/presentation/cli/progress.py +0 -0
  124. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/presentation/cli/results.py +0 -0
  125. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D/py.typed +0 -0
  126. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D.egg-info/SOURCES.txt +0 -0
  127. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D.egg-info/dependency_links.txt +0 -0
  128. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D.egg-info/entry_points.txt +0 -0
  129. {auto3d-3.2.3 → auto3d-3.2.4}/src/Auto3D.egg-info/top_level.txt +0 -0
  130. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_SPE.py +0 -0
  131. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_adapter_atom_mask.py +0 -0
  132. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_adapter_fp64_contract.py +0 -0
  133. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_adapter_package_layout.py +0 -0
  134. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_adapter_template.py +0 -0
  135. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_ani2xt_atom_energies.py +0 -0
  136. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_ase_geometry.py +0 -0
  137. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_ase_torch_config.py +0 -0
  138. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_atomic_io.py +0 -0
  139. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_auto3D.py +0 -0
  140. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_available_cpu_count.py +0 -0
  141. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_batchopt.py +0 -0
  142. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_bench_scripts.py +0 -0
  143. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_chunk_manager.py +0 -0
  144. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_cli.py +0 -0
  145. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_cli_commands_config.py +0 -0
  146. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_cli_config_schema.py +0 -0
  147. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_cli_console.py +0 -0
  148. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_cli_errors.py +0 -0
  149. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_cli_models_command.py +0 -0
  150. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_cli_results.py +0 -0
  151. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_cli_security.py +0 -0
  152. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_config_bounds.py +0 -0
  153. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_config_parallel_embedding.py +0 -0
  154. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_config_parity.py +0 -0
  155. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_conformer_budget.py +0 -0
  156. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_conftest_isolation_guards.py +0 -0
  157. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_connectivity.py +0 -0
  158. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_custom_nnp_eager.py +0 -0
  159. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_docs_compile_figures.py +0 -0
  160. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_docs_reproducibility.py +0 -0
  161. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_durability.py +0 -0
  162. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_e_tot_units.py +0 -0
  163. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_element_sets.py +0 -0
  164. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_embed_params.py +0 -0
  165. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_energy_constants.py +0 -0
  166. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_filtering.py +0 -0
  167. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_filtering_thermo_failed.py +0 -0
  168. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_fire_optimizer.py +0 -0
  169. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_geometry.py +0 -0
  170. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_helpers_pipeline_output.py +0 -0
  171. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_hessian_invocation_contract.py +0 -0
  172. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_id_mapping.py +0 -0
  173. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_isomer_engine.py +0 -0
  174. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_isomer_engine_hardening.py +0 -0
  175. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_isomers.py +0 -0
  176. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_job_layout.py +0 -0
  177. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_lazy_torchani_import.py +0 -0
  178. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_legacy_names.py +0 -0
  179. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_legacy_yaml_parity.py +0 -0
  180. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_logging_config.py +0 -0
  181. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_model_adapter.py +0 -0
  182. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_model_caching.py +0 -0
  183. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_model_preflight.py +0 -0
  184. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_model_wrapper.py +0 -0
  185. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_molprops.py +0 -0
  186. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_mp_start_method.py +0 -0
  187. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_multiplicity.py +0 -0
  188. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_non_finite_rows.py +0 -0
  189. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_notebook_properties.py +0 -0
  190. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_nse_multiplicity.py +0 -0
  191. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_optimization_engine.py +0 -0
  192. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_optimization_engine_indexing.py +0 -0
  193. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_optimization_engine_validation.py +0 -0
  194. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_output_names.py +0 -0
  195. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_output_overwrite_gates.py +0 -0
  196. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_padding.py +0 -0
  197. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_padding_invariance.py +0 -0
  198. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_parallel_embed.py +0 -0
  199. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_pipeline_e2e.py +0 -0
  200. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_policy.py +0 -0
  201. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_preflight_registry_offline.py +0 -0
  202. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_processors.py +0 -0
  203. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_progress.py +0 -0
  204. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_ranking.py +0 -0
  205. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_ranking_by_gibbs.py +0 -0
  206. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_record_policy_agreement.py +0 -0
  207. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_registry.py +0 -0
  208. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_results.py +0 -0
  209. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_run_setup.py +0 -0
  210. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_sdf_isomer_enumeration.py +0 -0
  211. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_smiles_stereo_warning.py +0 -0
  212. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_spe_energy_only.py +0 -0
  213. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_species_conversion.py +0 -0
  214. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_species_module.py +0 -0
  215. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_stereo_check_positions.py +0 -0
  216. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_stereo_identity.py +0 -0
  217. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_stereo_postopt.py +0 -0
  218. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_stereochemistry.py +0 -0
  219. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_stereochemistry_validation.py +0 -0
  220. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_suite_hygiene.py +0 -0
  221. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_tauto.py +0 -0
  222. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_tautomer_mirror_images.py +0 -0
  223. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_tautomer_select.py +0 -0
  224. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_tautomer_stereo.py +0 -0
  225. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_thermo.py +0 -0
  226. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_thermo_conventions.py +0 -0
  227. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_thermo_etot_sync.py +0 -0
  228. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_thermo_helpers.py +0 -0
  229. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_thermo_imaginary_mode_inversion.py +0 -0
  230. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_thermo_linearity.py +0 -0
  231. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_thermo_projection.py +0 -0
  232. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_thermo_record_assertions.py +0 -0
  233. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_thermo_reference.py +0 -0
  234. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_thermo_relative_energies.py +0 -0
  235. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_thermo_temperature_validation.py +0 -0
  236. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_thermo_transition_state.py +0 -0
  237. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_torch_config.py +0 -0
  238. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_utils.py +0 -0
  239. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_utils_reconciliation.py +0 -0
  240. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_utils_sdf_io.py +0 -0
  241. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_utils_smi_io.py +0 -0
  242. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_utils_validation.py +0 -0
  243. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_validate_run_parity.py +0 -0
  244. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_validation.py +0 -0
  245. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_validation_errors.py +0 -0
  246. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_worker_lifecycle.py +0 -0
  247. {auto3d-3.2.3 → auto3d-3.2.4}/tests/test_workflow_package_layout.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Auto3D
3
- Version: 3.2.3
3
+ Version: 3.2.4
4
4
  Summary: Generating Low-energy 3D Conformers from SMILES/SDF
5
5
  Author-email: Zhen Liu <liu5@andrew.cmu.edu>, Tetiana Zubatiuk <tetiana@zubatyuk.com>, Adrian Roitberg <roitberg@ufl.edu>, Olexandr Isayev <olexandr@olexandrisayev.com>
6
6
  Maintainer-email: Olexandr Isayev <olexandr@olexandrisayev.com>
@@ -33,7 +33,7 @@ Requires-Dist: numpy>=1.21.0
33
33
  Requires-Dist: pandas>=1.3.0
34
34
  Requires-Dist: rdkit>=2022.9.5
35
35
  Requires-Dist: torch>=2.8
36
- Requires-Dist: aimnet>=0.2
36
+ Requires-Dist: aimnet>=0.2; python_version < "3.15"
37
37
  Requires-Dist: requests>=2.32.3
38
38
  Requires-Dist: typer>=0.12.0
39
39
  Requires-Dist: rich>=13.0.0
@@ -96,7 +96,7 @@ CUDA-enabled PyTorch build first. AIMNet2 weights download to `~/.cache/aimnet`
96
96
  on first use, so the first run needs network access.
97
97
 
98
98
  <details>
99
- <summary><b>Using conda?</b> Install Auto3D itself with pip, even inside a conda env.</summary>
99
+ <summary><b>Using conda?</b> Install from conda-forge, then add AIMNet2 with pip.</summary>
100
100
 
101
101
  Starting with **3.1.1**, the conda-forge package no longer requires `aimnet`
102
102
  (which cannot be packaged for conda-forge — its dependency
@@ -105,7 +105,7 @@ and ANI2xt engines and ASE thermochemistry working out of the box; add the
105
105
  default AIMNet2 engine with one pip command inside the environment:
106
106
 
107
107
  ```bash
108
- conda install -c conda-forge auto3d # 3.2.0 on conda-forge
108
+ conda install -c conda-forge auto3d
109
109
  pip install aimnet # adds the AIMNet2 engines
110
110
  ```
111
111
 
@@ -35,7 +35,7 @@ CUDA-enabled PyTorch build first. AIMNet2 weights download to `~/.cache/aimnet`
35
35
  on first use, so the first run needs network access.
36
36
 
37
37
  <details>
38
- <summary><b>Using conda?</b> Install Auto3D itself with pip, even inside a conda env.</summary>
38
+ <summary><b>Using conda?</b> Install from conda-forge, then add AIMNet2 with pip.</summary>
39
39
 
40
40
  Starting with **3.1.1**, the conda-forge package no longer requires `aimnet`
41
41
  (which cannot be packaged for conda-forge — its dependency
@@ -44,7 +44,7 @@ and ANI2xt engines and ASE thermochemistry working out of the box; add the
44
44
  default AIMNet2 engine with one pip command inside the environment:
45
45
 
46
46
  ```bash
47
- conda install -c conda-forge auto3d # 3.2.0 on conda-forge
47
+ conda install -c conda-forge auto3d
48
48
  pip install aimnet # adds the AIMNet2 engines
49
49
  ```
50
50
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "Auto3D"
7
- version = "3.2.3"
7
+ version = "3.2.4"
8
8
  description = "Generating Low-energy 3D Conformers from SMILES/SDF"
9
9
  readme = "README.md"
10
10
  license = {text = "MIT"}
@@ -48,7 +48,7 @@ dependencies = [
48
48
  "pandas>=1.3.0",
49
49
  "rdkit>=2022.9.5",
50
50
  "torch>=2.8",
51
- "aimnet>=0.2",
51
+ "aimnet>=0.2; python_version < \"3.15\"",
52
52
  "requests>=2.32.3",
53
53
  "typer>=0.12.0",
54
54
  "rich>=13.0.0",
@@ -254,6 +254,10 @@ python_functions = "test_*"
254
254
  addopts = "-v --tb=short -m 'not slow' --strict-markers"
255
255
  markers = [
256
256
  "slow: marks tests as slow (deselect with '-m \"not slow\"')",
257
+ # The pull-request allowlist. `--strict-markers` is on, so this entry is
258
+ # what lets a test opt into the fast legs at all; tests/conftest.py's
259
+ # pytest_itemcollected hook marks everything without it `slow`.
260
+ "smoke: runs on the two per-pull-request pytest legs (see tests/conftest.py)",
257
261
  "timeout: per-test wall-clock limit (pytest-timeout)",
258
262
  ]
259
263
  filterwarnings = [
@@ -1,7 +1,7 @@
1
1
  """Aimnet availability check, shared by every ``import aimnet`` site.
2
2
 
3
- The ``aimnet`` package is a required pip dependency but is deliberately
4
- absent from the conda-forge package (see conda-recipe/meta.yaml and
3
+ The ``aimnet`` package is a required pip dependency (below Python 3.15; see
4
+ ``AIMNET_PYTHON_CEILING``) but is deliberately absent from the conda-forge package (see conda-recipe/meta.yaml and
5
5
  docs/source/howto/conda_build.rst: aimnet's own dependency
6
6
  nvalchemi-toolkit-ops is pip-only, so aimnet cannot be packaged for
7
7
  conda-forge). Every ``import aimnet`` site in Auto3D calls
@@ -15,8 +15,28 @@ either, so both can use it without importing each other.
15
15
 
16
16
  from __future__ import annotations
17
17
 
18
+ import sys
19
+
18
20
  from Auto3D.foundation.exceptions import DependencyError
19
21
 
22
+ #: The first Python version ``aimnet`` cannot be installed on: its dependency
23
+ #: nvalchemi-toolkit-ops declares ``requires-python <3.15``. ``pyproject.toml``
24
+ #: makes the ``aimnet`` requirement conditional on the same bound
25
+ #: (``python_version < "3.15"``), so that pip still installs current Auto3D on
26
+ #: 3.15 rather than falling back to 2.3.1, the newest release that needs no
27
+ #: aimnet. A test keeps the two in step. Raise both when upstream lifts its cap.
28
+ AIMNET_PYTHON_CEILING = (3, 15)
29
+
30
+ _UNSUPPORTED_PYTHON_MESSAGE = (
31
+ "AIMNet optimizing engines require the 'aimnet' package, which cannot be "
32
+ "installed on Python {version}: its dependency nvalchemi-toolkit-ops does "
33
+ "not support it yet."
34
+ )
35
+ _UNSUPPORTED_PYTHON_HINT = (
36
+ "Use a Python 3.11-{last} environment for AIMNet2, or choose "
37
+ "--engine ANI2x or ANI2xt (optimizing_engine='ANI2x' or 'ANI2xt')."
38
+ )
39
+
20
40
  _MESSAGE = (
21
41
  "AIMNet optimizing engines require the 'aimnet' package, which is not "
22
42
  "installed. Install it with 'pip install aimnet' (this works inside "
@@ -24,6 +44,11 @@ _MESSAGE = (
24
44
  )
25
45
 
26
46
 
47
+ def _python_version() -> tuple[int, int]:
48
+ """The running interpreter's (major, minor); a seam for tests."""
49
+ return sys.version_info.major, sys.version_info.minor
50
+
51
+
27
52
  def require_aimnet() -> None:
28
53
  """Raise ``DependencyError`` if the ``aimnet`` package is not installed.
29
54
 
@@ -43,5 +68,14 @@ def require_aimnet() -> None:
43
68
  except ModuleNotFoundError as exc:
44
69
  missing = exc.name or ""
45
70
  if missing == "aimnet" or missing.startswith("aimnet."):
71
+ running = _python_version()
72
+ if running >= AIMNET_PYTHON_CEILING:
73
+ # "pip install aimnet" would fail here, so say why instead.
74
+ major, minor = AIMNET_PYTHON_CEILING
75
+ raise DependencyError(
76
+ _UNSUPPORTED_PYTHON_MESSAGE.format(version=f"{running[0]}.{running[1]}"),
77
+ dependency_name="aimnet",
78
+ hint=_UNSUPPORTED_PYTHON_HINT.format(last=f"{major}.{minor - 1}"),
79
+ ) from exc
46
80
  raise DependencyError(_MESSAGE, dependency_name="aimnet") from exc
47
81
  raise
@@ -12,7 +12,7 @@ from Auto3D.foundation.config import require_selector
12
12
  from Auto3D.foundation.exceptions import InputValidationError
13
13
  from Auto3D.foundation.utils.logging_config import configure_logging
14
14
  from Auto3D.presentation.cli.config_schema import (
15
- build_cli_config,
15
+ build_cli_config_unresolved,
16
16
  load_yaml_config,
17
17
  merge_configs,
18
18
  require_input_path,
@@ -217,12 +217,18 @@ def execute_run(
217
217
  raise InputValidationError(f"Input file not found: {input_file}")
218
218
 
219
219
  # Build configuration
220
+ # The base is validated but its engine is not resolved yet:
221
+ # `--engine` may still replace it, and resolving the default
222
+ # (AIMNET) here made `--engine ANI2xt` fail without aimnet.
223
+ # merge_configs below resolves the engine the run will use.
220
224
  if config_file:
221
- config = load_yaml_config(config_file)
222
- config = build_cli_config(path=input_file, **config.model_dump(exclude={"path"}))
225
+ config = load_yaml_config(config_file, resolve_engine=False)
226
+ config = build_cli_config_unresolved(
227
+ path=input_file, **config.model_dump(exclude={"path"})
228
+ )
223
229
  else:
224
230
  # Pydantic provides defaults for all fields except path
225
- config = build_cli_config(path=input_file) # type: ignore[call-arg]
231
+ config = build_cli_config_unresolved(path=input_file) # type: ignore[call-arg]
226
232
 
227
233
  # Apply CLI overrides, one per RunOptions field (renamed through
228
234
  # _FIELD_TO_CONFIG_KEY where the flag spelling and the
@@ -31,9 +31,12 @@ OPTIONS_ONLY_FIELDS: dict[str, str] = {
31
31
  }
32
32
 
33
33
 
34
- def build_cli_config(**kwargs: Any) -> Auto3DOptions:
34
+ def build_cli_config_unresolved(**kwargs: Any) -> Auto3DOptions:
35
35
  """Construct an ``Auto3DOptions``, translating any failure into ``ConfigurationError``.
36
36
 
37
+ Validates every value but does not resolve the engine name; use
38
+ ``build_cli_config`` unless overrides are still to be merged in.
39
+
37
40
  This is the one construction path every site that builds an
38
41
  ``Auto3DOptions`` from external data (a YAML file, merged CLI overrides,
39
42
  a bare CLI invocation) should call, rather than constructing
@@ -61,7 +64,7 @@ def build_cli_config(**kwargs: Any) -> Auto3DOptions:
61
64
  init" hint like every other one.
62
65
  """
63
66
  try:
64
- config = Auto3DOptions(**kwargs)
67
+ return Auto3DOptions(**kwargs)
65
68
  except ValidationError as exc:
66
69
  raise ConfigurationError(str(exc)) from exc
67
70
  except (TypeError, ValueError) as exc:
@@ -70,6 +73,25 @@ def build_cli_config(**kwargs: Any) -> Auto3DOptions:
70
73
  # rejected it instead of surfacing a bare "int() argument must be...".
71
74
  raise ConfigurationError(f"Invalid configuration value: {exc}") from exc
72
75
 
76
+
77
+ def build_cli_config(**kwargs: Any) -> Auto3DOptions:
78
+ """``build_cli_config_unresolved``, then resolve the engine name.
79
+
80
+ The configuration a run will actually use goes through here. A *base*
81
+ that CLI overrides will still be merged into does not: ``auto3d run``
82
+ builds one from the defaults or a config file, then applies ``--engine``.
83
+ Resolving the base's engine checked an engine the user may already have
84
+ overridden -- the default AIMNET -- so ``--engine ANI2xt`` exited 3
85
+ without aimnet, which is every conda-forge install. ``merge_configs``
86
+ goes through here, so the merged configuration is resolved exactly once.
87
+
88
+ This is a separate function rather than a keyword flag on purpose: every
89
+ keyword here comes from user data (``load_yaml_config`` passes the YAML
90
+ mapping straight through), so a flag in the same namespace would let a
91
+ config-file key collide with it.
92
+ """
93
+ config = build_cli_config_unresolved(**kwargs)
94
+
73
95
  # Engine-name resolution happens HERE, not on the model, and the reason is
74
96
  # not only layering. `resolve_engine_name` lives in `Auto3D.engines.models`, so a
75
97
  # validator on `Auto3DOptions` (foundation layer) would point upward at the
@@ -114,7 +136,7 @@ def require_input_path(config: Auto3DOptions) -> Auto3DOptions:
114
136
  return config
115
137
 
116
138
 
117
- def load_yaml_config(yaml_path: Path) -> Auto3DOptions:
139
+ def load_yaml_config(yaml_path: Path, *, resolve_engine: bool = True) -> Auto3DOptions:
118
140
  """Load and validate configuration from a YAML file.
119
141
 
120
142
  Uses ``yaml.safe_load``, so Python-specific tags such as
@@ -123,7 +145,11 @@ def load_yaml_config(yaml_path: Path) -> Auto3DOptions:
123
145
  Raises:
124
146
  ConfigurationError: the file is empty, is not a YAML mapping, or is
125
147
  not parseable as YAML; or the mapping fails ``Auto3DOptions``
126
- validation (via ``build_cli_config``).
148
+ validation (via ``build_cli_config``), or -- unless
149
+ ``resolve_engine`` is False -- names an engine that does not
150
+ resolve. Pass False when CLI overrides will be merged in later
151
+ (see ``build_cli_config``); ``resolve_engine`` is a parameter of
152
+ this function only, never forwarded with the file's keys.
127
153
  """
128
154
  try:
129
155
  with open(yaml_path) as f:
@@ -156,7 +182,8 @@ def load_yaml_config(yaml_path: Path) -> Auto3DOptions:
156
182
  if val == "None":
157
183
  data[key] = None
158
184
 
159
- return build_cli_config(**data)
185
+ build = build_cli_config if resolve_engine else build_cli_config_unresolved
186
+ return build(**data)
160
187
 
161
188
 
162
189
  def merge_configs(base: Auto3DOptions, overrides: dict[str, Any]) -> Auto3DOptions:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Auto3D
3
- Version: 3.2.3
3
+ Version: 3.2.4
4
4
  Summary: Generating Low-energy 3D Conformers from SMILES/SDF
5
5
  Author-email: Zhen Liu <liu5@andrew.cmu.edu>, Tetiana Zubatiuk <tetiana@zubatyuk.com>, Adrian Roitberg <roitberg@ufl.edu>, Olexandr Isayev <olexandr@olexandrisayev.com>
6
6
  Maintainer-email: Olexandr Isayev <olexandr@olexandrisayev.com>
@@ -33,7 +33,7 @@ Requires-Dist: numpy>=1.21.0
33
33
  Requires-Dist: pandas>=1.3.0
34
34
  Requires-Dist: rdkit>=2022.9.5
35
35
  Requires-Dist: torch>=2.8
36
- Requires-Dist: aimnet>=0.2
36
+ Requires-Dist: aimnet>=0.2; python_version < "3.15"
37
37
  Requires-Dist: requests>=2.32.3
38
38
  Requires-Dist: typer>=0.12.0
39
39
  Requires-Dist: rich>=13.0.0
@@ -96,7 +96,7 @@ CUDA-enabled PyTorch build first. AIMNet2 weights download to `~/.cache/aimnet`
96
96
  on first use, so the first run needs network access.
97
97
 
98
98
  <details>
99
- <summary><b>Using conda?</b> Install Auto3D itself with pip, even inside a conda env.</summary>
99
+ <summary><b>Using conda?</b> Install from conda-forge, then add AIMNet2 with pip.</summary>
100
100
 
101
101
  Starting with **3.1.1**, the conda-forge package no longer requires `aimnet`
102
102
  (which cannot be packaged for conda-forge — its dependency
@@ -105,7 +105,7 @@ and ANI2xt engines and ASE thermochemistry working out of the box; add the
105
105
  default AIMNet2 engine with one pip command inside the environment:
106
106
 
107
107
  ```bash
108
- conda install -c conda-forge auto3d # 3.2.0 on conda-forge
108
+ conda install -c conda-forge auto3d
109
109
  pip install aimnet # adds the AIMNet2 engines
110
110
  ```
111
111
 
@@ -6,12 +6,14 @@ numpy>=1.21.0
6
6
  pandas>=1.3.0
7
7
  rdkit>=2022.9.5
8
8
  torch>=2.8
9
- aimnet>=0.2
10
9
  requests>=2.32.3
11
10
  typer>=0.12.0
12
11
  rich>=13.0.0
13
12
  pydantic>=2.0
14
13
 
14
+ [:python_version < "3.15"]
15
+ aimnet>=0.2
16
+
15
17
  [all]
16
18
  Auto3D[ani,ase,dev,docs]
17
19
 
@@ -67,6 +67,10 @@ def test_unknown_key_reports_named_configuration_error(tmp_path, monkeypatch):
67
67
  assert exc_info.value.code == 2
68
68
 
69
69
 
70
+ # Config validation, half one: an unknown key is an error. This test is the one
71
+ # that checks both config paths agree on that, so it covers `extra="forbid"`
72
+ # where the user actually meets it.
73
+ @pytest.mark.smoke
70
74
  def test_unknown_key_reports_same_verdict_as_the_modern_path(tmp_path, monkeypatch):
71
75
  """Same shape, same verdict, through ``auto3d run INPUT -c cfg.yaml``.
72
76
 
@@ -83,6 +83,8 @@ def test_models_help(runner):
83
83
  assert "list" in result.stdout
84
84
 
85
85
 
86
+ # `models list`.
87
+ @pytest.mark.smoke
86
88
  def test_models_list_shows_engines(runner):
87
89
  """models list should show available engines."""
88
90
  from Auto3D.presentation.cli.app import app
@@ -92,6 +94,8 @@ def test_models_list_shows_engines(runner):
92
94
  assert "AIMNET" in result.stdout
93
95
 
94
96
 
97
+ # `models info`.
98
+ @pytest.mark.smoke
95
99
  def test_models_info_aimnet(runner):
96
100
  """models info should show engine details."""
97
101
  from Auto3D.presentation.cli.app import app
@@ -186,6 +190,8 @@ def test_models_info_aimnet_element_set(runner):
186
190
  assert elements == expected, f"element set changed: {elements}"
187
191
 
188
192
 
193
+ # `validate`.
194
+ @pytest.mark.smoke
189
195
  def test_validate_valid_smi(runner, tmp_path):
190
196
  """validate should pass for valid SMILES file."""
191
197
  from Auto3D.presentation.cli.app import app
@@ -322,6 +328,8 @@ def auto3d_process(tmp_path):
322
328
  return run
323
329
 
324
330
 
331
+ # `config init`.
332
+ @pytest.mark.smoke
325
333
  def test_config_init_creates_file(runner, tmp_path_cwd):
326
334
  """config init should create YAML file."""
327
335
  from Auto3D.presentation.cli.app import app
@@ -376,6 +384,8 @@ def test_config_init_invalid_preset(runner, tmp_path_cwd):
376
384
  assert "quick" in result.output
377
385
 
378
386
 
387
+ # `config show`.
388
+ @pytest.mark.smoke
379
389
  def test_config_show_displays_file(runner, tmp_path_cwd):
380
390
  """config show should display YAML file."""
381
391
  from Auto3D.presentation.cli.app import app
@@ -405,6 +415,8 @@ def test_config_show_not_found(runner, tmp_path_cwd):
405
415
  assert "not found" in result.stderr
406
416
 
407
417
 
418
+ # `config validate`.
419
+ @pytest.mark.smoke
408
420
  def test_config_validate_valid(runner, tmp_path_cwd):
409
421
  """config validate should pass for valid config."""
410
422
  from Auto3D.presentation.cli.app import app
@@ -475,6 +487,8 @@ def test_config_validate_accepts_a_settings_only_config(runner, tmp_path_cwd):
475
487
  assert m.called, "run rejected the config that config validate approved"
476
488
 
477
489
 
490
+ # `run`, the command behind every other entry point.
491
+ @pytest.mark.smoke
478
492
  def test_run_requires_input(runner):
479
493
  """run should require input file argument."""
480
494
  from Auto3D.presentation.cli.app import app
@@ -483,6 +497,7 @@ def test_run_requires_input(runner):
483
497
  assert result.exit_code != 0
484
498
 
485
499
 
500
+ @pytest.mark.smoke
486
501
  def test_run_with_nonexistent_file(runner):
487
502
  """run should fail with nonexistent file."""
488
503
  from Auto3D.presentation.cli.app import app
@@ -1265,6 +1280,10 @@ def sdf_path(tmp_path):
1265
1280
  return p
1266
1281
 
1267
1282
 
1283
+ # `thermo`, and the closest thing to a cheap exerciser of `calc_thermo`: the
1284
+ # command's arguments are checked where they are handed over, with the
1285
+ # thermochemistry itself stubbed. Nothing cheap can check the chemistry.
1286
+ @pytest.mark.smoke
1268
1287
  def test_thermo_forwards_low_freq_cutoff(runner, sdf_path, monkeypatch):
1269
1288
  """``--low-freq-cutoff`` must reach `calc_thermo` as `low_freq_cutoff_cm`.
1270
1289
 
@@ -44,6 +44,16 @@ runner = CliRunner()
44
44
 
45
45
  TORCHANI_INSTALLED = importlib.util.find_spec("torchani") is not None
46
46
 
47
+ # The whole error taxonomy, deliberately whole rather than one hand-picked test
48
+ # per code. A curated subset is the thing that silently stops covering an exit
49
+ # code: rename or restructure the one test that happened to be chosen for exit
50
+ # 7 and nothing reports that exit 7 is now unguarded, which is the same
51
+ # asymmetric failure the slow tier's partition check exists to prevent. The
52
+ # module also carries the pin that the documented table lists exactly the codes
53
+ # the CLI can emit, so a new code cannot arrive undocumented. 1.7 s / 0.5 s for
54
+ # every code at once.
55
+ pytestmark = pytest.mark.smoke
56
+
47
57
 
48
58
  def _flat(text: str) -> str:
49
59
  """Collapse whitespace: Rich wraps panels at the console width, so a
@@ -404,10 +414,18 @@ def test_a_broken_torchani_is_not_reported_as_a_missing_one(monkeypatch, tmp_pat
404
414
 
405
415
 
406
416
  def _hide_aimnet(monkeypatch):
407
- """Hide aimnet via the shared helper; see ``hide_optional_dependency``."""
417
+ """Hide aimnet via the shared helper; see ``hide_optional_dependency``.
418
+
419
+ Also pins the interpreter version seen by ``require_aimnet`` below
420
+ ``AIMNET_PYTHON_CEILING``. Above it, the error deliberately stops
421
+ advising ``pip install aimnet`` (``test_no_aimnet.py`` covers that
422
+ branch), and these tests assert the advice given everywhere else.
423
+ """
424
+ from Auto3D.engines.models import availability
408
425
  from tests.helpers_no_aimnet import hide_optional_dependency
409
426
 
410
427
  hide_optional_dependency(monkeypatch, "aimnet", reset_model_cache=True)
428
+ monkeypatch.setattr(availability, "_python_version", lambda: (3, 12))
411
429
 
412
430
 
413
431
  def test_exit_3_models_test_without_aimnet(monkeypatch):
@@ -452,6 +470,85 @@ def test_exit_3_run_without_aimnet(monkeypatch, tmp_path):
452
470
  assert "Install: pip install aimnet" in err
453
471
 
454
472
 
473
+ @pytest.mark.parametrize(
474
+ ("config_text", "extra_args"),
475
+ [
476
+ pytest.param(None, ["--engine", "ANI2xt"], id="flag-only"),
477
+ pytest.param("k: 1\n", ["--engine", "ANI2xt"], id="flag-over-config-without-engine"),
478
+ pytest.param(
479
+ "k: 1\noptimizing_engine: AIMNET\n",
480
+ ["--engine", "ANI2xt"],
481
+ id="flag-over-aimnet-config",
482
+ ),
483
+ pytest.param("k: 1\noptimizing_engine: ANI2xt\n", [], id="config-only"),
484
+ pytest.param(None, ["--engine", "ANI2x"], id="ani2x-flag"),
485
+ pytest.param(None, ["--engine", "{nnp}"], id="custom-nnp-flag"),
486
+ ],
487
+ )
488
+ def test_run_with_ani_engine_works_without_aimnet(monkeypatch, tmp_path, config_text, extra_args):
489
+ """The other half of the conda-forge promise: without aimnet, choosing an
490
+ ANI engine must *work*, not exit 3.
491
+
492
+ It did not, from 3.1.1 through 3.2.3: ``execute_run`` built a base
493
+ configuration from defaults (or from the config file) and resolved its
494
+ engine -- ``AIMNET`` unless the file said otherwise -- before merging
495
+ ``--engine``, so the aimnet check fired on an engine the user had already
496
+ overridden. Every case where the engine named on the final configuration
497
+ is ANI2xt must reach ``main`` with ANI2xt, whatever the base said.
498
+ """
499
+ import Auto3D.entry.auto3D as a3d
500
+
501
+ _hide_aimnet(monkeypatch)
502
+
503
+ smi = tmp_path / "mols.smi"
504
+ smi.write_text("CCO m1\n")
505
+ # A custom NNP is named by path; resolution only checks that it exists,
506
+ # and `main` is stubbed below, so an empty file stands in for one.
507
+ nnp = tmp_path / "my_nnp.pt"
508
+ nnp.write_bytes(b"")
509
+ extra_args = [a.replace("{nnp}", str(nnp)) for a in extra_args]
510
+ expected = extra_args[-1] if extra_args else "ANI2xt"
511
+ args = ["run", str(smi), "--no-gpu", *extra_args]
512
+ if config_text is None:
513
+ args += ["--k", "1"]
514
+ else:
515
+ cfg = tmp_path / "cfg.yaml"
516
+ cfg.write_text(config_text)
517
+ args += ["-c", str(cfg)]
518
+
519
+ seen: list[str] = []
520
+
521
+ def fake_main(options, progress_callback=None, **kwargs):
522
+ seen.append(options.optimizing_engine)
523
+ out = tmp_path / "out.sdf"
524
+ out.write_text("")
525
+ return str(out)
526
+
527
+ monkeypatch.setattr(a3d, "main", fake_main)
528
+
529
+ result = runner.invoke(app, args)
530
+
531
+ assert "Dependency Error" not in _flat(result.stderr), result.output
532
+ assert seen == [expected], result.output
533
+
534
+
535
+ def test_run_refuses_an_internal_parameter_name_as_a_config_key(tmp_path):
536
+ """A config file's keys go straight into the configuration builder as
537
+ keyword arguments. So a builder parameter of its own -- a
538
+ ``resolve_engine`` flag was one -- collides with a key of that name and
539
+ surfaces as a ``TypeError`` at exit 1 ("Unexpected Error"). It must be
540
+ refused like any other unknown key: exit 2."""
541
+ smi = tmp_path / "mols.smi"
542
+ smi.write_text("CCO m1\n")
543
+ cfg = tmp_path / "cfg.yaml"
544
+ cfg.write_text("k: 1\noptimizing_engine: ANI2xt\nresolve_engine: false\n")
545
+
546
+ result = runner.invoke(app, ["run", str(smi), "-c", str(cfg), "--no-gpu"])
547
+
548
+ assert result.exit_code == 2, result.output
549
+ assert "Unexpected Error" not in _flat(result.stderr)
550
+
551
+
455
552
  # --- 4: GPU error ------------------------------------------------------------
456
553
  #
457
554
  # Two different guards produce exit 4, and both must keep working on both kinds
@@ -816,8 +913,9 @@ def test_exit_130_ctrl_c_reports_how_far_the_run_got(tmp_path, monkeypatch):
816
913
 
817
914
  monkeypatch.setattr(a3d, "main", interrupted_main)
818
915
 
819
- # ANI2xt short-circuits engine resolution, so this test never imports
820
- # `aimnet`/`warp` for a run that is stubbed out anyway.
916
+ # ANI2xt short-circuits engine resolution (once --engine is merged; the
917
+ # base configuration's default engine is not resolved), so this test never
918
+ # imports `aimnet`/`warp` for a run that is stubbed out anyway.
821
919
  result = runner.invoke(
822
920
  app,
823
921
  ["run", str(smi), "--k", "1", "--no-gpu", "--engine", "ANI2xt", "--job-name", "kestrel"],
@@ -57,6 +57,8 @@ def smi(tmp_path):
57
57
  # --- parity: each new command reaches its API function ----------------------
58
58
 
59
59
 
60
+ # `energy`, and the hand-over to `calc_spe`.
61
+ @pytest.mark.smoke
60
62
  def test_energy_invokes_calc_spe(sdf):
61
63
  with patch.object(Auto3D.entry.SPE, "calc_spe", return_value="out_E.sdf") as m:
62
64
  res = runner.invoke(app, ["energy", str(sdf), "--no-gpu", "--engine", "ANI2x"])
@@ -75,6 +77,8 @@ def test_energy_output_flag(sdf, tmp_path):
75
77
  assert m.call_args.kwargs["out_path"] == str(out)
76
78
 
77
79
 
80
+ # `optimize`, and the hand-over to `opt_geometry`.
81
+ @pytest.mark.smoke
78
82
  def test_optimize_invokes_opt_geometry(sdf):
79
83
  with patch.object(Auto3D.entry.ASE.geometry, "opt_geometry", return_value="out_opt.sdf") as m:
80
84
  res = runner.invoke(app, ["optimize", str(sdf), "--no-gpu", "--opt-steps", "5"])
@@ -82,6 +86,8 @@ def test_optimize_invokes_opt_geometry(sdf):
82
86
  assert m.call_args.kwargs["opt_steps"] == 5
83
87
 
84
88
 
89
+ # `tautomers`.
90
+ @pytest.mark.smoke
85
91
  def test_tautomers_invokes_get_stable_tautomers(smi):
86
92
  with patch.object(
87
93
  Auto3D.entry.tautomer, "get_stable_tautomers", return_value="out_taut.sdf"
@@ -394,6 +400,8 @@ def test_config_init_preset_enum_valid(tmp_path):
394
400
  assert target.exists()
395
401
 
396
402
 
403
+ # `models test`, the one `models` subcommand that loads a model.
404
+ @pytest.mark.smoke
397
405
  def test_models_test_success(monkeypatch):
398
406
  """`models test` loads the engine and runs a forward; reports success."""
399
407
  import torch
@@ -193,6 +193,8 @@ def test_ani2xt_compile_does_not_hit_the_recompile_limit():
193
193
  torch._dynamo.reset()
194
194
 
195
195
 
196
+ # The other half of the same guard, and nearly free.
197
+ @pytest.mark.smoke
196
198
  def test_ani2x_adapter_compile_hook_returns_model_unchanged(caplog):
197
199
  from Auto3D.engines.models.adapter import ANI2xAdapter
198
200
 
@@ -213,6 +215,8 @@ def test_ani2x_compile_request_warns_and_runs_eager(caplog):
213
215
  assert any("ANI2x" in r.message and "compile" in r.message.lower() for r in caplog.records)
214
216
 
215
217
 
218
+ # The factory-level refusal, also nearly free.
219
+ @pytest.mark.smoke
216
220
  def test_create_model_refuses_a_compiled_adapter_that_disagrees_with_eager(monkeypatch):
217
221
  """A compile that silently changes the numbers must not reach the optimizer."""
218
222
  pytest.importorskip("torchani")
@@ -222,6 +226,13 @@ def test_create_model_refuses_a_compiled_adapter_that_disagrees_with_eager(monke
222
226
  create_model("ANI2xt", torch.device("cpu"), compile_model=True, use_cache=False)
223
227
 
224
228
 
229
+ # Stays on the pull-request path by explicit decision, and it is by far the most
230
+ # expensive thing on it: 12.2 s on the 3.11 leg and 19.0 s on 3.12, which is the
231
+ # whole smoke budget in one class. It is kept anyway because it guards the
232
+ # compiled-versus-eager agreement of the `torch.compile` path shipped in 3.2.3 --
233
+ # the newest runtime change in the tree, and the one whose failure mode is wrong
234
+ # numbers rather than an exception.
235
+ @pytest.mark.smoke
225
236
  class TestCustomNnpProbeSeam:
226
237
  """The custom-NNP branch of the factory runs the same probe.
227
238
 
@@ -339,6 +339,9 @@ def test_the_new_name_wins_when_both_old_and_new_are_passed():
339
339
  assert config.isomer_threads == 9
340
340
 
341
341
 
342
+ # Config validation, half two: exactly one of `k` and `window` is required, with
343
+ # both the "neither" and the "both" wording pinned in one test.
344
+ @pytest.mark.smoke
342
345
  def test_require_selector_rejects_neither_and_both_with_one_wording_each():
343
346
  """One ``require_selector`` is the single raise site for the
344
347
  missing-selector error; every entry point (CLI, YAML validation, Python
@@ -380,6 +380,11 @@ def test_a_model_returning_a_scalar_energy_is_rejected_on_the_first_forward(tmp_
380
380
  # --- acceptance (a false rejection is a regression) -------------------------
381
381
 
382
382
 
383
+ # The `CustomNNP` contract, from the user's side: a conforming model loads
384
+ # through `load_custom_nnp` and produces energies. The 24 rejection cases
385
+ # around it are in the slow tier; this is the one that fails if loading a custom
386
+ # model stops working at all.
387
+ @pytest.mark.smoke
383
388
  def test_contract_conforming_model_loads_and_runs(tmp_path):
384
389
  """The happy path must still work, end to end through the adapter, with the
385
390
  force sign and value that autograd implies."""
@@ -104,6 +104,13 @@ print(json.dumps({
104
104
  }))
105
105
  """ % {"leaks": LEAK_CANDIDATES}
106
106
 
107
+ # The import-boundary guards, kept whole. They are the only thing that catches
108
+ # the foundation layer growing a torch import, or the CLI pulling in rdkit at
109
+ # import time -- layout breaks that no behavioral test sees, since the code
110
+ # still works, just slower and with the dependency direction inverted.
111
+ # 1.3 s on 3.11, 1.0 s on 3.12.
112
+ pytestmark = pytest.mark.smoke
113
+
107
114
 
108
115
  @pytest.fixture(scope="module")
109
116
  def bare_import():
@@ -94,6 +94,11 @@ UPWARD_EXEMPTIONS: dict[tuple[str, str], str] = {}
94
94
  #: the exemption as stale on the next run.
95
95
  CYCLE_EXEMPTIONS: dict[tuple[str, str], str] = {}
96
96
 
97
+ # The layer guards, kept whole, for the same reason as the import boundaries
98
+ # above: a cycle between two packages is a structural break that behaves
99
+ # correctly right up until it does not. 0.5 s / 0.4 s.
100
+ pytestmark = pytest.mark.smoke
101
+
97
102
 
98
103
  def _module_name(path: pathlib.Path) -> str:
99
104
  parts = list(path.relative_to(SRC).with_suffix("").parts)