Auto3D 3.1.0__tar.gz → 3.1.1__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.
- {auto3d-3.1.0/src/Auto3D.egg-info → auto3d-3.1.1}/PKG-INFO +13 -8
- {auto3d-3.1.0 → auto3d-3.1.1}/README.md +12 -7
- {auto3d-3.1.0 → auto3d-3.1.1}/pyproject.toml +1 -1
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/engines/models/adapter.py +5 -0
- auto3d-3.1.1/src/Auto3D/engines/models/availability.py +47 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/engines/models/preflight.py +15 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/presentation/cli/errors.py +1 -0
- {auto3d-3.1.0 → auto3d-3.1.1/src/Auto3D.egg-info}/PKG-INFO +13 -8
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D.egg-info/SOURCES.txt +2 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_cli_app.py +21 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_cli_errors.py +13 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_cli_exit_codes.py +54 -0
- auto3d-3.1.1/tests/test_no_aimnet.py +122 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/LICENSE +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/MANIFEST.in +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/setup.cfg +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/__init__.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/domain/__init__.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/domain/clash_relief.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/domain/embedding.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/domain/filtering.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/domain/id_mapping.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/domain/ranking.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/engines/__init__.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/engines/batch_opt/__init__.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/engines/batch_opt/batchopt.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/engines/batch_opt/fire_optimizer.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/engines/batch_opt/model_wrapper.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/engines/batch_opt/optimization_engine.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/engines/batch_opt/padding.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/engines/isomers/__init__.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/engines/isomers/base.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/engines/isomers/factory.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/engines/isomers/omega.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/engines/isomers/rdkit_sdf.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/engines/isomers/rdkit_smi.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/engines/isomers/tautomers.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/engines/model_factory.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/engines/models/__init__.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/engines/models/ani2xt.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/engines/models/ani2xt_no_repulsion.pt +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/engines/models/contract.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/engines/models/loading.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/engines/models/policy.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/engines/models/species.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/entry/ASE/__init__.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/entry/ASE/geometry.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/entry/ASE/thermo/__init__.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/entry/ASE/thermo/calculator.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/entry/ASE/thermo/driver.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/entry/ASE/thermo/properties.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/entry/ASE/thermo/vibrations.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/entry/SPE.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/entry/__init__.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/entry/auto3D.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/entry/tautomer.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/foundation/__init__.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/foundation/config.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/foundation/constants.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/foundation/exceptions.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/foundation/registry.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/foundation/results.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/foundation/torch_config.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/foundation/utils/__init__.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/foundation/utils/atomic_io.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/foundation/utils/connectivity.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/foundation/utils/convergence.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/foundation/utils/energy.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/foundation/utils/geometry.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/foundation/utils/logging_config.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/foundation/utils/molprops.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/foundation/utils/output_guard.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/foundation/utils/reconciliation.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/foundation/utils/sdf_io.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/foundation/utils/smi_io.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/foundation/utils/stereo_check.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/foundation/utils/stereochemistry.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/orchestration/__init__.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/orchestration/chunk_manager.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/orchestration/job_layout.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/orchestration/pipeline/__init__.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/orchestration/pipeline/input_checks.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/orchestration/processors.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/orchestration/workflow.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/orchestration/workflow_workers.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/presentation/__init__.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/presentation/auto3Dcli.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/presentation/cli/__init__.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/presentation/cli/app.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/presentation/cli/commands/__init__.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/presentation/cli/commands/config.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/presentation/cli/commands/models.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/presentation/cli/commands/properties.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/presentation/cli/commands/run.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/presentation/cli/commands/validate.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/presentation/cli/config_schema.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/presentation/cli/console.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/presentation/cli/progress.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/presentation/cli/results.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D/py.typed +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D.egg-info/dependency_links.txt +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D.egg-info/entry_points.txt +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D.egg-info/requires.txt +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/src/Auto3D.egg-info/top_level.txt +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_SPE.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_adapter_atom_mask.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_adapter_fp64_contract.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_ani2xt_atom_energies.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_ase_geometry.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_ase_torch_config.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_atomic_io.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_auto3D.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_auto3Dcli.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_batchopt.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_chunk_manager.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_cli.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_cli_commands_config.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_cli_config_schema.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_cli_console.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_cli_models_command.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_cli_property_commands.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_cli_results.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_cli_security.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_config.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_config_parity.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_conftest_isolation_guards.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_custom_nnp_contract.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_custom_nnp_eager.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_durability.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_e_tot_units.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_element_sets.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_embed_params.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_filtering.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_filtering_thermo_failed.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_fire_optimizer.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_helpers_pipeline_output.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_hessian_invocation_contract.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_id_mapping.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_import_boundaries.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_isomer_engine.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_isomer_engine_hardening.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_isomers.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_job_layout.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_layer_boundaries.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_lazy_torchani_import.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_legacy_yaml_parity.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_logging_config.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_model_adapter.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_model_caching.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_model_factory.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_model_preflight.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_model_wrapper.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_mp_start_method.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_notebook_properties.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_optimization_engine.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_optimization_engine_indexing.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_optimization_engine_validation.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_output_overwrite_gates.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_packaging_metadata.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_padding.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_padding_invariance.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_parallel_embed.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_pipeline_e2e.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_processors.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_progress.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_public_api.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_ranking.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_ranking_by_gibbs.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_registry.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_results.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_sdf_isomer_enumeration.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_smiles_stereo_warning.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_spe_energy_only.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_species_conversion.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_species_module.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_stereo_identity.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_stereo_postopt.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_stereochemistry_validation.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_suite_hygiene.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_tauto.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_tautomer_select.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_tautomer_stereo.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_thermo.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_thermo_etot_sync.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_thermo_helpers.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_thermo_imaginary_mode_inversion.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_thermo_projection.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_thermo_record_assertions.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_thermo_reference.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_thermo_relative_energies.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_thermo_transition_state.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_torch_config.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_utils.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_utils_connectivity.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_utils_energy_constants.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_utils_geometry.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_utils_molprops.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_utils_reconciliation.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_utils_sdf_io.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_utils_smi_io.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_utils_stereochemistry.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_utils_validation.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_validate_run_parity.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_validation.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_validation_errors.py +0 -0
- {auto3d-3.1.0 → auto3d-3.1.1}/tests/test_workflow.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: Auto3D
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.1
|
|
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>
|
|
@@ -97,21 +97,26 @@ on first use, so the first run needs network access.
|
|
|
97
97
|
<details>
|
|
98
98
|
<summary><b>Using conda?</b> Install Auto3D itself with pip, even inside a conda env.</summary>
|
|
99
99
|
|
|
100
|
-
|
|
100
|
+
Starting with **3.1.1**, the conda-forge package no longer requires `aimnet`
|
|
101
|
+
(which cannot be packaged for conda-forge — its dependency
|
|
102
|
+
`nvalchemi-toolkit-ops` is pip-only). The conda package ships with the ANI2x
|
|
103
|
+
and ANI2xt engines and ASE thermochemistry working out of the box; add the
|
|
104
|
+
default AIMNet2 engine with one pip command inside the environment:
|
|
101
105
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
106
|
+
```bash
|
|
107
|
+
conda install -c conda-forge auto3d # once the 3.1.1 feedstock update lands
|
|
108
|
+
pip install aimnet # adds the AIMNet2 engines
|
|
109
|
+
```
|
|
105
110
|
|
|
106
|
-
|
|
107
|
-
|
|
111
|
+
If conda-forge still shows an older version, install with pip inside a conda
|
|
112
|
+
environment instead — `installation.yml` sets up the supported combination:
|
|
108
113
|
|
|
109
114
|
```bash
|
|
110
115
|
conda env create --file installation.yml --name auto3D
|
|
111
116
|
conda activate auto3D # pip installs Auto3D[ani,ase] into it
|
|
112
117
|
```
|
|
113
118
|
|
|
114
|
-
Details
|
|
119
|
+
Details: [Building the conda package](https://auto3d.readthedocs.io/en/latest/howto/conda_build.html).
|
|
115
120
|
|
|
116
121
|
</details>
|
|
117
122
|
|
|
@@ -37,21 +37,26 @@ on first use, so the first run needs network access.
|
|
|
37
37
|
<details>
|
|
38
38
|
<summary><b>Using conda?</b> Install Auto3D itself with pip, even inside a conda env.</summary>
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
Starting with **3.1.1**, the conda-forge package no longer requires `aimnet`
|
|
41
|
+
(which cannot be packaged for conda-forge — its dependency
|
|
42
|
+
`nvalchemi-toolkit-ops` is pip-only). The conda package ships with the ANI2x
|
|
43
|
+
and ANI2xt engines and ASE thermochemistry working out of the box; add the
|
|
44
|
+
default AIMNet2 engine with one pip command inside the environment:
|
|
41
45
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
46
|
+
```bash
|
|
47
|
+
conda install -c conda-forge auto3d # once the 3.1.1 feedstock update lands
|
|
48
|
+
pip install aimnet # adds the AIMNet2 engines
|
|
49
|
+
```
|
|
45
50
|
|
|
46
|
-
|
|
47
|
-
|
|
51
|
+
If conda-forge still shows an older version, install with pip inside a conda
|
|
52
|
+
environment instead — `installation.yml` sets up the supported combination:
|
|
48
53
|
|
|
49
54
|
```bash
|
|
50
55
|
conda env create --file installation.yml --name auto3D
|
|
51
56
|
conda activate auto3D # pip installs Auto3D[ani,ase] into it
|
|
52
57
|
```
|
|
53
58
|
|
|
54
|
-
Details
|
|
59
|
+
Details: [Building the conda package](https://auto3d.readthedocs.io/en/latest/howto/conda_build.html).
|
|
55
60
|
|
|
56
61
|
</details>
|
|
57
62
|
|
|
@@ -22,6 +22,7 @@ import torch
|
|
|
22
22
|
import torch.nn as nn
|
|
23
23
|
|
|
24
24
|
from Auto3D.engines.models.ani2xt import ANI2xt, element_indices, self_atomic_energies
|
|
25
|
+
from Auto3D.engines.models.availability import require_aimnet
|
|
25
26
|
from Auto3D.engines.models.loading import load_custom_nnp
|
|
26
27
|
from Auto3D.engines.models.species import to_ani2xt_species
|
|
27
28
|
from Auto3D.foundation.constants import HARTREE_TO_EV
|
|
@@ -334,7 +335,11 @@ class AIMNet2Adapter(BaseModelAdapter):
|
|
|
334
335
|
model_name: aimnet registry name/alias.
|
|
335
336
|
device: Target device.
|
|
336
337
|
compile_model: Forwarded to AIMNet2Calculator (torch.compile).
|
|
338
|
+
|
|
339
|
+
Raises:
|
|
340
|
+
DependencyError: The ``aimnet`` package is not installed.
|
|
337
341
|
"""
|
|
342
|
+
require_aimnet()
|
|
338
343
|
from aimnet.calculators import AIMNet2Calculator
|
|
339
344
|
|
|
340
345
|
if device is None:
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"""Aimnet availability check, shared by every ``import aimnet`` site.
|
|
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
|
|
5
|
+
docs/source/howto/conda_build.rst: aimnet's own dependency
|
|
6
|
+
nvalchemi-toolkit-ops is pip-only, so aimnet cannot be packaged for
|
|
7
|
+
conda-forge). Every ``import aimnet`` site in Auto3D calls
|
|
8
|
+
:func:`require_aimnet` first, so a missing aimnet surfaces as one
|
|
9
|
+
consistent, actionable ``DependencyError`` (CLI exit 3, same convention as
|
|
10
|
+
missing torchani) instead of a raw ``ModuleNotFoundError`` traceback.
|
|
11
|
+
|
|
12
|
+
A sibling of ``preflight.py`` and ``adapter.py`` rather than part of either,
|
|
13
|
+
so both can use it without importing each other.
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
from __future__ import annotations
|
|
17
|
+
|
|
18
|
+
from Auto3D.foundation.exceptions import DependencyError
|
|
19
|
+
|
|
20
|
+
_MESSAGE = (
|
|
21
|
+
"AIMNet optimizing engines require the 'aimnet' package, which is not "
|
|
22
|
+
"installed. Install it with 'pip install aimnet' (this works inside "
|
|
23
|
+
"conda environments), or choose optimizing_engine='ANI2x' or 'ANI2xt'."
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def require_aimnet() -> None:
|
|
28
|
+
"""Raise ``DependencyError`` if the ``aimnet`` package is not installed.
|
|
29
|
+
|
|
30
|
+
Only the clean not-installed case is translated: a
|
|
31
|
+
``ModuleNotFoundError`` whose ``name`` is ``aimnet`` itself (or one of
|
|
32
|
+
its submodules). A ``ModuleNotFoundError`` naming any *other* module
|
|
33
|
+
means aimnet is installed but its own environment is broken (a missing
|
|
34
|
+
transitive dependency, say); that re-raises unchanged, because "install
|
|
35
|
+
aimnet" would be wrong advice for it.
|
|
36
|
+
|
|
37
|
+
Raises:
|
|
38
|
+
DependencyError: aimnet is not installed
|
|
39
|
+
(``dependency_name="aimnet"``, CLI exit 3).
|
|
40
|
+
"""
|
|
41
|
+
try:
|
|
42
|
+
import aimnet # noqa: F401
|
|
43
|
+
except ModuleNotFoundError as exc:
|
|
44
|
+
missing = exc.name or ""
|
|
45
|
+
if missing == "aimnet" or missing.startswith("aimnet."):
|
|
46
|
+
raise DependencyError(_MESSAGE, dependency_name="aimnet") from exc
|
|
47
|
+
raise
|
|
@@ -12,6 +12,7 @@ from __future__ import annotations
|
|
|
12
12
|
import os
|
|
13
13
|
from pathlib import Path
|
|
14
14
|
|
|
15
|
+
from Auto3D.engines.models.availability import require_aimnet
|
|
15
16
|
from Auto3D.foundation.constants import (
|
|
16
17
|
DEFAULT_AIMNET_MODEL,
|
|
17
18
|
MODEL_AIMNET,
|
|
@@ -74,6 +75,8 @@ def resolve_engine_name(name: str) -> str:
|
|
|
74
75
|
the aimnet aliases, because a typo like ``aimnet2-2025x`` is the
|
|
75
76
|
case this exists to catch and "not found in the registry" alone
|
|
76
77
|
does not tell the user what they may write instead.
|
|
78
|
+
DependencyError: The name needs the aimnet registry (``AIMNET`` or a
|
|
79
|
+
registry name/alias) but the ``aimnet`` package is not installed.
|
|
77
80
|
"""
|
|
78
81
|
name_upper = name.upper()
|
|
79
82
|
|
|
@@ -95,6 +98,8 @@ def resolve_engine_name(name: str) -> str:
|
|
|
95
98
|
if not is_aimnet_literal and Path(name).exists():
|
|
96
99
|
return name
|
|
97
100
|
|
|
101
|
+
require_aimnet()
|
|
102
|
+
|
|
98
103
|
from aimnet.calculators.model_registry import (
|
|
99
104
|
load_model_registry,
|
|
100
105
|
resolve_registry_model_name,
|
|
@@ -158,6 +163,8 @@ def preflight_model(engine: str) -> None:
|
|
|
158
163
|
|
|
159
164
|
Raises:
|
|
160
165
|
ConfigurationError: The engine name is not recognized.
|
|
166
|
+
DependencyError: The name needs the aimnet registry (``AIMNET`` or a
|
|
167
|
+
registry name/alias) but the ``aimnet`` package is not installed.
|
|
161
168
|
ModelLoadError: The model could not be obtained -- a network failure
|
|
162
169
|
while downloading it, a checksum mismatch on the cached file, or
|
|
163
170
|
a cache directory that cannot be read or written.
|
|
@@ -178,6 +185,14 @@ def preflight_model(engine: str) -> None:
|
|
|
178
185
|
# reach this module through a module-scope import in utils/validation.py,
|
|
179
186
|
# which audit M43 deferred into the two functions that use it.)
|
|
180
187
|
import requests
|
|
188
|
+
|
|
189
|
+
# Deliberately redundant defense-in-depth: resolve_engine_name (above) already
|
|
190
|
+
# calls require_aimnet() before any aimnet import on every current path, so
|
|
191
|
+
# this call is a no-op today. It exists so this import site stays
|
|
192
|
+
# self-guarding if a future refactor stops routing through resolve_engine_name
|
|
193
|
+
# first.
|
|
194
|
+
require_aimnet()
|
|
195
|
+
|
|
181
196
|
from aimnet.calculators.model_registry import get_registry_model_path
|
|
182
197
|
|
|
183
198
|
# Resolved as a plain string before the try, and reused in every handler
|
|
@@ -90,6 +90,7 @@ def get_error_hint(error: Auto3DError) -> str | None:
|
|
|
90
90
|
"openeye": "Install: conda install -c openeye openeye-toolkits",
|
|
91
91
|
"torchani": "Install: pip install torchani",
|
|
92
92
|
"ase": "Install: pip install ase",
|
|
93
|
+
"aimnet": "Install: pip install aimnet",
|
|
93
94
|
}
|
|
94
95
|
return hints.get(dep, f"Install the missing dependency: {dep}")
|
|
95
96
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: Auto3D
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.1
|
|
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>
|
|
@@ -97,21 +97,26 @@ on first use, so the first run needs network access.
|
|
|
97
97
|
<details>
|
|
98
98
|
<summary><b>Using conda?</b> Install Auto3D itself with pip, even inside a conda env.</summary>
|
|
99
99
|
|
|
100
|
-
|
|
100
|
+
Starting with **3.1.1**, the conda-forge package no longer requires `aimnet`
|
|
101
|
+
(which cannot be packaged for conda-forge — its dependency
|
|
102
|
+
`nvalchemi-toolkit-ops` is pip-only). The conda package ships with the ANI2x
|
|
103
|
+
and ANI2xt engines and ASE thermochemistry working out of the box; add the
|
|
104
|
+
default AIMNet2 engine with one pip command inside the environment:
|
|
101
105
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
106
|
+
```bash
|
|
107
|
+
conda install -c conda-forge auto3d # once the 3.1.1 feedstock update lands
|
|
108
|
+
pip install aimnet # adds the AIMNet2 engines
|
|
109
|
+
```
|
|
105
110
|
|
|
106
|
-
|
|
107
|
-
|
|
111
|
+
If conda-forge still shows an older version, install with pip inside a conda
|
|
112
|
+
environment instead — `installation.yml` sets up the supported combination:
|
|
108
113
|
|
|
109
114
|
```bash
|
|
110
115
|
conda env create --file installation.yml --name auto3D
|
|
111
116
|
conda activate auto3D # pip installs Auto3D[ani,ase] into it
|
|
112
117
|
```
|
|
113
118
|
|
|
114
|
-
Details
|
|
119
|
+
Details: [Building the conda package](https://auto3d.readthedocs.io/en/latest/howto/conda_build.html).
|
|
115
120
|
|
|
116
121
|
</details>
|
|
117
122
|
|
|
@@ -35,6 +35,7 @@ src/Auto3D/engines/models/__init__.py
|
|
|
35
35
|
src/Auto3D/engines/models/adapter.py
|
|
36
36
|
src/Auto3D/engines/models/ani2xt.py
|
|
37
37
|
src/Auto3D/engines/models/ani2xt_no_repulsion.pt
|
|
38
|
+
src/Auto3D/engines/models/availability.py
|
|
38
39
|
src/Auto3D/engines/models/contract.py
|
|
39
40
|
src/Auto3D/engines/models/loading.py
|
|
40
41
|
src/Auto3D/engines/models/policy.py
|
|
@@ -147,6 +148,7 @@ tests/test_model_factory.py
|
|
|
147
148
|
tests/test_model_preflight.py
|
|
148
149
|
tests/test_model_wrapper.py
|
|
149
150
|
tests/test_mp_start_method.py
|
|
151
|
+
tests/test_no_aimnet.py
|
|
150
152
|
tests/test_notebook_properties.py
|
|
151
153
|
tests/test_optimization_engine.py
|
|
152
154
|
tests/test_optimization_engine_indexing.py
|
|
@@ -110,6 +110,27 @@ def test_models_info_ani2x(runner):
|
|
|
110
110
|
assert "ANI-2x" in result.stdout
|
|
111
111
|
|
|
112
112
|
|
|
113
|
+
def test_models_info_works_without_aimnet(runner, monkeypatch):
|
|
114
|
+
"""CHANGELOG (Unreleased) claims ``auto3d models info`` works without
|
|
115
|
+
aimnet installed, and nothing exercised that claim.
|
|
116
|
+
|
|
117
|
+
``execute_models_info`` (``src/Auto3D/presentation/cli/commands/models.py``)
|
|
118
|
+
is a static ``ENGINE_INFO`` dict lookup -- it never imports or probes
|
|
119
|
+
``aimnet`` at all, unlike ``execute_models_list``'s ``torchani`` probe. So
|
|
120
|
+
this holds even for the ``AIMNET`` engine itself: the one command whose
|
|
121
|
+
*execution* (``models test``/``run``) genuinely needs the package still
|
|
122
|
+
describes it with the package hidden.
|
|
123
|
+
"""
|
|
124
|
+
from Auto3D.presentation.cli.app import app
|
|
125
|
+
from tests.helpers_no_aimnet import hide_aimnet
|
|
126
|
+
|
|
127
|
+
hide_aimnet(monkeypatch)
|
|
128
|
+
|
|
129
|
+
result = runner.invoke(app, ["models", "info", "AIMNET"])
|
|
130
|
+
assert result.exit_code == 0, result.output
|
|
131
|
+
assert "AIMNet2" in result.stdout
|
|
132
|
+
|
|
133
|
+
|
|
113
134
|
def test_models_info_unknown_engine(runner):
|
|
114
135
|
"""models info should fail for unknown engine.
|
|
115
136
|
|
|
@@ -117,6 +117,19 @@ def test_dependency_error_hint_pins_ase_install(capsys):
|
|
|
117
117
|
assert "unknown" not in captured.err
|
|
118
118
|
|
|
119
119
|
|
|
120
|
+
def test_dependency_error_hint_pins_aimnet_install(capsys):
|
|
121
|
+
from Auto3D.foundation.exceptions import DependencyError
|
|
122
|
+
|
|
123
|
+
with pytest.raises(SystemExit):
|
|
124
|
+
handle_error(
|
|
125
|
+
DependencyError("aimnet is not installed", dependency_name="aimnet"),
|
|
126
|
+
verbose=0,
|
|
127
|
+
)
|
|
128
|
+
captured = capsys.readouterr()
|
|
129
|
+
assert "Install: pip install aimnet" in captured.err
|
|
130
|
+
assert "unknown" not in captured.err
|
|
131
|
+
|
|
132
|
+
|
|
120
133
|
def test_dependency_error_without_dependency_name_falls_back_to_unknown(capsys):
|
|
121
134
|
"""A DependencyError raised without naming a dependency (e.g. by future or
|
|
122
135
|
third-party code) must still produce a hint, not crash the hint lookup --
|
|
@@ -360,6 +360,60 @@ def test_a_broken_torchani_is_not_reported_as_a_missing_one(monkeypatch, tmp_pat
|
|
|
360
360
|
assert "pip install torchani" not in err
|
|
361
361
|
|
|
362
362
|
|
|
363
|
+
def _hide_aimnet(monkeypatch):
|
|
364
|
+
"""Same technique and reasoning as ``_hide_torchani`` above, for aimnet:
|
|
365
|
+
block the import and swap ``ModelFactory._cache`` for an empty dict so a
|
|
366
|
+
previously built AIMNet model cannot satisfy the request without
|
|
367
|
+
reaching an import."""
|
|
368
|
+
from Auto3D.engines.model_factory import ModelFactory
|
|
369
|
+
from tests.helpers_no_aimnet import hide_aimnet
|
|
370
|
+
|
|
371
|
+
hide_aimnet(monkeypatch)
|
|
372
|
+
monkeypatch.setattr(ModelFactory, "_cache", {})
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
def test_exit_3_models_test_without_aimnet(monkeypatch):
|
|
376
|
+
"""The conda-forge package ships without aimnet (pip-only dependency
|
|
377
|
+
chain), so requesting the default engine in that environment must report
|
|
378
|
+
exit 3 with the install hint -- mirroring the torchani case above, which
|
|
379
|
+
is the same integer from a different missing dependency."""
|
|
380
|
+
_hide_aimnet(monkeypatch)
|
|
381
|
+
|
|
382
|
+
result = runner.invoke(app, ["models", "test", "AIMNET", "--no-gpu"])
|
|
383
|
+
|
|
384
|
+
assert result.exit_code == 3, result.output
|
|
385
|
+
err = _flat(result.stderr)
|
|
386
|
+
assert "Dependency Error" in err
|
|
387
|
+
assert "Install: pip install aimnet" in err
|
|
388
|
+
assert "unknown" not in err
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
def test_exit_3_run_without_aimnet(monkeypatch, tmp_path):
|
|
392
|
+
"""The flagship conda-user path: ``auto3d run`` with the default engine,
|
|
393
|
+
in the environment the conda-forge package creates. ``models test`` above
|
|
394
|
+
covers the same dependency from the health-check command; this covers it
|
|
395
|
+
from the entry point people actually script against.
|
|
396
|
+
|
|
397
|
+
No ``--engine`` is passed, so this exercises the default (AIMNET) resolving
|
|
398
|
+
through to the aimnet import -- the exit-130 test elsewhere in this file
|
|
399
|
+
passes ``--engine ANI2xt`` specifically to avoid that import, which is the
|
|
400
|
+
corroboration that omitting it here reaches the real dependency check.
|
|
401
|
+
Preflight raises in the parent before any worker fork or model download,
|
|
402
|
+
so this stays fast-tier safe.
|
|
403
|
+
"""
|
|
404
|
+
_hide_aimnet(monkeypatch)
|
|
405
|
+
|
|
406
|
+
smi = tmp_path / "mols.smi"
|
|
407
|
+
smi.write_text("CCO m1\n")
|
|
408
|
+
|
|
409
|
+
result = runner.invoke(app, ["run", str(smi), "--k", "1", "--no-gpu"])
|
|
410
|
+
|
|
411
|
+
assert result.exit_code == 3, result.output
|
|
412
|
+
err = _flat(result.stderr)
|
|
413
|
+
assert "Dependency Error" in err
|
|
414
|
+
assert "Install: pip install aimnet" in err
|
|
415
|
+
|
|
416
|
+
|
|
363
417
|
# --- 4: GPU error ------------------------------------------------------------
|
|
364
418
|
#
|
|
365
419
|
# Two different guards produce exit 4, and both must keep working on both kinds
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"""The no-aimnet path: Auto3D without the ``aimnet`` package installed.
|
|
2
|
+
|
|
3
|
+
The conda-forge package ships without aimnet (its dependency
|
|
4
|
+
nvalchemi-toolkit-ops is pip-only, so aimnet cannot be packaged there).
|
|
5
|
+
Every aimnet touch point must therefore fail as an actionable
|
|
6
|
+
``DependencyError`` (CLI exit 3, "pip install aimnet") rather than a raw
|
|
7
|
+
``ModuleNotFoundError`` -- and everything that does not need aimnet
|
|
8
|
+
(``import Auto3D``, ANI engines, custom NNP paths) must keep working.
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
from __future__ import annotations
|
|
12
|
+
|
|
13
|
+
import importlib.util
|
|
14
|
+
import sys
|
|
15
|
+
|
|
16
|
+
import pytest
|
|
17
|
+
|
|
18
|
+
from Auto3D.foundation.exceptions import DependencyError
|
|
19
|
+
from tests.helpers_no_aimnet import BrokenTransitiveDepFinder, hide_aimnet
|
|
20
|
+
|
|
21
|
+
AIMNET_INSTALLED = importlib.util.find_spec("aimnet") is not None
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class TestRequireAimnet:
|
|
25
|
+
@pytest.mark.skipif(not AIMNET_INSTALLED, reason="needs aimnet present")
|
|
26
|
+
def test_noop_when_aimnet_installed(self):
|
|
27
|
+
from Auto3D.engines.models.availability import require_aimnet
|
|
28
|
+
|
|
29
|
+
require_aimnet() # must not raise
|
|
30
|
+
|
|
31
|
+
def test_raises_dependency_error_when_missing(self, monkeypatch):
|
|
32
|
+
from Auto3D.engines.models.availability import require_aimnet
|
|
33
|
+
|
|
34
|
+
hide_aimnet(monkeypatch)
|
|
35
|
+
|
|
36
|
+
with pytest.raises(DependencyError) as exc_info:
|
|
37
|
+
require_aimnet()
|
|
38
|
+
|
|
39
|
+
assert exc_info.value.dependency_name == "aimnet"
|
|
40
|
+
assert "pip install aimnet" in str(exc_info.value)
|
|
41
|
+
assert isinstance(exc_info.value.__cause__, ModuleNotFoundError)
|
|
42
|
+
|
|
43
|
+
def test_broken_transitive_dep_reraises_unchanged(self, monkeypatch):
|
|
44
|
+
"""aimnet installed but its own dependency broken: NOT our error to
|
|
45
|
+
relabel -- "install aimnet" would be wrong advice."""
|
|
46
|
+
from Auto3D.engines.models.availability import require_aimnet
|
|
47
|
+
|
|
48
|
+
for name in [m for m in sys.modules if m == "aimnet" or m.startswith("aimnet.")]:
|
|
49
|
+
monkeypatch.delitem(sys.modules, name)
|
|
50
|
+
monkeypatch.setattr(sys, "meta_path", [BrokenTransitiveDepFinder()] + sys.meta_path)
|
|
51
|
+
|
|
52
|
+
with pytest.raises(ModuleNotFoundError) as exc_info:
|
|
53
|
+
require_aimnet()
|
|
54
|
+
|
|
55
|
+
assert exc_info.value.name == "warp"
|
|
56
|
+
assert not isinstance(exc_info.value, DependencyError)
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
class TestPreflightWithoutAimnet:
|
|
60
|
+
def test_resolve_aimnet_literal_raises_dependency_error(self, monkeypatch):
|
|
61
|
+
from Auto3D.engines.models.preflight import resolve_engine_name
|
|
62
|
+
|
|
63
|
+
hide_aimnet(monkeypatch)
|
|
64
|
+
|
|
65
|
+
with pytest.raises(DependencyError) as exc_info:
|
|
66
|
+
resolve_engine_name("AIMNET")
|
|
67
|
+
assert exc_info.value.dependency_name == "aimnet"
|
|
68
|
+
|
|
69
|
+
def test_resolve_registry_name_raises_dependency_error(self, monkeypatch):
|
|
70
|
+
from Auto3D.engines.models.preflight import resolve_engine_name
|
|
71
|
+
|
|
72
|
+
hide_aimnet(monkeypatch)
|
|
73
|
+
|
|
74
|
+
with pytest.raises(DependencyError):
|
|
75
|
+
resolve_engine_name("aimnet2-2025")
|
|
76
|
+
|
|
77
|
+
def test_resolve_ani_engines_work_without_aimnet(self, monkeypatch):
|
|
78
|
+
from Auto3D.engines.models.preflight import resolve_engine_name
|
|
79
|
+
from Auto3D.foundation.constants import MODEL_ANI2X, MODEL_ANI2XT
|
|
80
|
+
|
|
81
|
+
hide_aimnet(monkeypatch)
|
|
82
|
+
|
|
83
|
+
assert resolve_engine_name("ANI2x") == MODEL_ANI2X
|
|
84
|
+
assert resolve_engine_name("ANI2xt") == MODEL_ANI2XT
|
|
85
|
+
|
|
86
|
+
def test_resolve_custom_path_works_without_aimnet(self, monkeypatch, tmp_path):
|
|
87
|
+
from Auto3D.engines.models.preflight import resolve_engine_name
|
|
88
|
+
|
|
89
|
+
hide_aimnet(monkeypatch)
|
|
90
|
+
nnp = tmp_path / "my_model.pt"
|
|
91
|
+
nnp.write_bytes(b"not a real model")
|
|
92
|
+
|
|
93
|
+
assert resolve_engine_name(str(nnp)) == str(nnp)
|
|
94
|
+
|
|
95
|
+
def test_preflight_model_ani_is_noop_without_aimnet(self, monkeypatch):
|
|
96
|
+
from Auto3D.engines.models.preflight import preflight_model
|
|
97
|
+
|
|
98
|
+
hide_aimnet(monkeypatch)
|
|
99
|
+
|
|
100
|
+
preflight_model("ANI2xt") # must not raise
|
|
101
|
+
|
|
102
|
+
def test_preflight_model_aimnet_raises_dependency_error(self, monkeypatch):
|
|
103
|
+
from Auto3D.engines.models.preflight import preflight_model
|
|
104
|
+
|
|
105
|
+
hide_aimnet(monkeypatch)
|
|
106
|
+
|
|
107
|
+
with pytest.raises(DependencyError):
|
|
108
|
+
preflight_model("AIMNET")
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
class TestAdapterWithoutAimnet:
|
|
112
|
+
def test_adapter_init_raises_dependency_error(self, monkeypatch):
|
|
113
|
+
"""Direct construction (the Python-API path that bypasses preflight)
|
|
114
|
+
must fail with the same actionable error. require_aimnet() is the
|
|
115
|
+
first statement, so no calculator work happens first."""
|
|
116
|
+
from Auto3D.engines.models.adapter import AIMNet2Adapter
|
|
117
|
+
|
|
118
|
+
hide_aimnet(monkeypatch)
|
|
119
|
+
|
|
120
|
+
with pytest.raises(DependencyError) as exc_info:
|
|
121
|
+
AIMNet2Adapter()
|
|
122
|
+
assert exc_info.value.dependency_name == "aimnet"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|