chython 3.6__tar.gz → 3.7__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.
- {chython-3.6/chython.egg-info → chython-3.7}/PKG-INFO +1 -1
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_reaction_passes.py +1 -1
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_smarts.py +3 -78
- chython-3.6/chython/chemistry/test/test_standardize_differential.py → chython-3.7/chython/chemistry/test/test_standardize_corpus.py +8 -69
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_thiele_is_single_purpose.py +5 -37
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_z_translation.py +6 -72
- {chython-3.6 → chython-3.7}/chython/core/_molecule_arena.pxi +3 -4
- {chython-3.6 → chython-3.7}/chython/core/_molecule_container.pxi +2 -2
- {chython-3.6 → chython-3.7}/chython/core/_valence.pxi +3 -4
- {chython-3.6 → chython-3.7}/chython/core/test/gen_valence_rules.py +26 -202
- {chython-3.6 → chython-3.7}/chython/core/test/reaction_pach_corpus.py +5 -9
- {chython-3.6 → chython-3.7}/chython/core/test/test_aggregates.py +3 -51
- {chython-3.6 → chython-3.7}/chython/core/test/test_alternative_spellings.py +0 -64
- {chython-3.6 → chython-3.7}/chython/core/test/test_canonical_mirror.py +7 -25
- {chython-3.6 → chython-3.7}/chython/core/test/test_clean_isotopes_and_coordinate_bonds.py +2 -79
- chython-3.6/chython/core/test/test_no_chython_two_imports.py → chython-3.7/chython/core/test/test_core_isolation.py +15 -49
- {chython-3.6 → chython-3.7}/chython/core/test/test_element_tables.py +1 -102
- {chython-3.6 → chython-3.7}/chython/core/test/test_features.py +1 -2
- {chython-3.6 → chython-3.7}/chython/core/test/test_magic.py +4 -5
- {chython-3.6 → chython-3.7}/chython/core/test/test_r_query.py +1 -1
- {chython-3.6 → chython-3.7}/chython/core/test/test_reaction_container.py +16 -121
- {chython-3.6 → chython-3.7}/chython/core/test/test_reaction_pach.py +1 -1
- {chython-3.6 → chython-3.7}/chython/core/test/test_reaction_passes.py +1 -1
- {chython-3.6 → chython-3.7}/chython/core/test/test_reaction_smiles.py +1 -58
- {chython-3.6 → chython-3.7}/chython/core/test/test_smarts_read.py +8 -317
- chython-3.7/chython/core/test/test_smiles_roundtrip.py +137 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_smiles_write_stereo.py +9 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_thiele.py +1 -2
- {chython-3.6 → chython-3.7}/chython/core/test/test_topology.py +0 -68
- {chython-3.6 → chython-3.7}/chython/core/test/test_valence.py +24 -233
- {chython-3.6 → chython-3.7}/chython/core/test/test_view_surface.py +1 -1
- {chython-3.6 → chython-3.7}/chython/core/valence_rules.tsv +1 -2
- {chython-3.6 → chython-3.7}/chython/core/wedge.py +1 -3
- {chython-3.6 → chython-3.7}/chython/formats/ctfile/test/conftest.py +0 -49
- {chython-3.6 → chython-3.7}/chython/formats/ctfile/test/test_fidelity.py +0 -90
- {chython-3.6 → chython-3.7}/chython/formats/ctfile/test/test_hydrogens.py +3 -61
- {chython-3.6 → chython-3.7}/chython/formats/ctfile/test/test_rdf.py +0 -48
- {chython-3.6 → chython-3.7}/chython/formats/ctfile/test/test_v2000.py +6 -84
- {chython-3.6 → chython-3.7}/chython/formats/ctfile/test/test_v3000.py +1 -29
- {chython-3.6 → chython-3.7}/chython/formats/ctfile/test/test_wedge.py +7 -176
- {chython-3.6 → chython-3.7}/chython/formats/test/oracles.py +1 -1
- {chython-3.6 → chython-3.7}/chython/formats/test/test_oracles.py +1 -1
- {chython-3.6 → chython-3.7}/chython/reactions/tables/functional.tsv +1 -0
- {chython-3.6 → chython-3.7}/chython/reactions/tables/reactions.tsv +2 -2
- {chython-3.6 → chython-3.7}/chython/reactions/tables/roles.tsv +12 -6
- {chython-3.6 → chython-3.7}/chython/reactions/test/_frozen_ids.py +17 -10
- {chython-3.6 → chython-3.7}/chython/reactions/test/test_reconstruct_labels.py +4 -0
- {chython-3.6 → chython-3.7}/chython/reactions/test/test_roles.py +64 -4
- {chython-3.6 → chython-3.7}/chython/test/test_facade_names.py +2 -2
- {chython-3.6 → chython-3.7}/chython/test/test_optional_numpy.py +3 -3
- {chython-3.6 → chython-3.7}/chython/test/test_stereo_bluebook.py +1 -1
- {chython-3.6 → chython-3.7}/chython/test/test_v2_boundary.py +2 -8
- {chython-3.6 → chython-3.7/chython.egg-info}/PKG-INFO +1 -1
- {chython-3.6 → chython-3.7}/chython.egg-info/SOURCES.txt +2 -10
- {chython-3.6 → chython-3.7}/pyproject.toml +1 -1
- chython-3.6/chython/chemistry/test/_oracle.py +0 -49
- chython-3.6/chython/core/test/gen_reaction_pach_corpus.py +0 -153
- chython-3.6/chython/core/test/oracle.py +0 -707
- chython-3.6/chython/core/test/test_oracle.py +0 -238
- chython-3.6/chython/core/test/test_reaction_patch_stereo.py +0 -162
- chython-3.6/chython/core/test/test_smiles_roundtrip.py +0 -349
- chython-3.6/chython/core/test/test_smiles_write_differential.py +0 -879
- chython-3.6/chython/core/test/test_stereo_v2_differential.py +0 -235
- chython-3.6/chython/interop/test/test_v2_oracle.py +0 -480
- {chython-3.6 → chython-3.7}/LICENSE +0 -0
- {chython-3.6 → chython-3.7}/MANIFEST.in +0 -0
- {chython-3.6 → chython-3.7}/README.md +0 -0
- {chython-3.6 → chython-3.7}/build_inchi.py +0 -0
- {chython-3.6 → chython-3.7}/chython/__init__.py +0 -0
- {chython-3.6 → chython-3.7}/chython/_functions.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/__init__.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/_abbreviations.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/_canonicalize.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/_counts.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/_crippen.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/_hydrogens.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/_implicit.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/_isomers.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/_kekule_form.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/_maccs.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/_organometallics.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/_perceive.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/_pharmacophore.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/_protomers.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/_qed.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/_residues.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/_resonance.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/_salts.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/_saturate.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/_smarts.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/_standardize.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/_stereo_audit.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/_tables.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/_tpsa.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/tables/abbreviations.tsv +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/tables/acids.tsv +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/tables/covalent_radii.tsv +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/tables/crippen.tsv +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/tables/hbond.tsv +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/tables/maccs.tsv +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/tables/maccs_corpus.tsv +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/tables/pharmacophore.tsv +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/tables/qed_alerts.tsv +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/tables/residues.tsv +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/tables/resonance.tsv +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/tables/rotatable.tsv +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/tables/salts.tsv +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/tables/standardize_groups.tsv +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/tables/standardize_metals.tsv +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/tables/stereo_audit.tsv +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/tables/sybyl_types.tsv +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/tables/tpsa.tsv +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/__init__.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/_corpus.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/gen_standardize_rules.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_abbreviations.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_acids_tsv.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_canonicalize.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_canonicalize_atom_order.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_counts.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_covalent_radii_tsv.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_crippen.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_crippen_tsv.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_dependency_direction.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_featurizer_injection.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_featurizer_tables_lazy.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_isomers.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_kekule_form.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_maccs.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_maccs_corpus.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_maccs_tsv.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_organometallics.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_perceive.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_pharmacophore.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_protomers.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_qed.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_qed_alerts_tsv.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_reaction_hydrogen_repair.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_residues.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_resonance.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_resonance_tsv.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_salts.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_saturate.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_standardize_groups_port.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_standardize_overvalent_nitrogen.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_standardize_rules_examples.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_standardize_rules_merges.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_standardize_rules_tsv.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_stereo_audit.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_tpsa.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_tpsa_tsv.py +0 -0
- {chython-3.6 → chython-3.7}/chython/chemistry/test/test_valence_report.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/RULES.md +0 -0
- {chython-3.6 → chython-3.7}/chython/core/__init__.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/_canonical.pxi +0 -0
- {chython-3.6 → chython-3.7}/chython/core/_cip.pxi +0 -0
- {chython-3.6 → chython-3.7}/chython/core/_core.pyx +0 -0
- {chython-3.6 → chython-3.7}/chython/core/_descriptors.pxi +0 -0
- {chython-3.6 → chython-3.7}/chython/core/_elements.pxi +0 -0
- {chython-3.6 → chython-3.7}/chython/core/_facade.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/_features.pxi +0 -0
- {chython-3.6 → chython-3.7}/chython/core/_fingerprints.pxi +0 -0
- {chython-3.6 → chython-3.7}/chython/core/_hydrogens.pxi +0 -0
- {chython-3.6 → chython-3.7}/chython/core/_inchi.pxi +0 -0
- {chython-3.6 → chython-3.7}/chython/core/_isomorphism.pxi +0 -0
- {chython-3.6 → chython-3.7}/chython/core/_kekule.pxi +0 -0
- {chython-3.6 → chython-3.7}/chython/core/_layout_score.pxi +0 -0
- {chython-3.6 → chython-3.7}/chython/core/_log.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/_ml.pxi +0 -0
- {chython-3.6 → chython-3.7}/chython/core/_molecule_topology.pxi +0 -0
- {chython-3.6 → chython-3.7}/chython/core/_molecule_views.pxi +0 -0
- {chython-3.6 → chython-3.7}/chython/core/_morgan.pxi +0 -0
- {chython-3.6 → chython-3.7}/chython/core/_pach.pxi +0 -0
- {chython-3.6 → chython-3.7}/chython/core/_pach3.pxi +0 -0
- {chython-3.6 → chython-3.7}/chython/core/_query_arena.pxi +0 -0
- {chython-3.6 → chython-3.7}/chython/core/_query_boxes.pxi +0 -0
- {chython-3.6 → chython-3.7}/chython/core/_query_container.pxi +0 -0
- {chython-3.6 → chython-3.7}/chython/core/_query_seal.pxi +0 -0
- {chython-3.6 → chython-3.7}/chython/core/_reaction_passes.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/_rings.pxi +0 -0
- {chython-3.6 → chython-3.7}/chython/core/_smarts_read.pxi +0 -0
- {chython-3.6 → chython-3.7}/chython/core/_smiles_read.pxi +0 -0
- {chython-3.6 → chython-3.7}/chython/core/_smiles_write.pxi +0 -0
- {chython-3.6 → chython-3.7}/chython/core/_smirks_patch.pxi +0 -0
- {chython-3.6 → chython-3.7}/chython/core/_smirks_read.pxi +0 -0
- {chython-3.6 → chython-3.7}/chython/core/_sssr.pxi +0 -0
- {chython-3.6 → chython-3.7}/chython/core/_stereo.pxi +0 -0
- {chython-3.6 → chython-3.7}/chython/core/_stereo_meaning.pxi +0 -0
- {chython-3.6 → chython-3.7}/chython/core/_thiele.pxi +0 -0
- {chython-3.6 → chython-3.7}/chython/core/chains.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/elements.tsv +0 -0
- {chython-3.6 → chython-3.7}/chython/core/isotopes.tsv +0 -0
- {chython-3.6 → chython-3.7}/chython/core/monomers.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/nucleotides.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/reaction.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/__init__.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/arena_v4_corpus.bin.gz +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/bench_ml.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/chytorch_oracle.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/gen_element_tables.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/gen_modeling_view_corpus.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/gen_pach3_corpus.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/gen_v3_fixtures.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/gen_v4_fixtures.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/modeling_view_corpus.json.gz +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/modeling_view_corpus.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/pach3_corpus.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/pach_bond_group_corpus.bin.gz +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/pach_corpus.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/pach_v0_corpus.bin.gz +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/pach_v0_native_corpus.bin.gz +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/pach_v2_corpus.bin.gz +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/pach_v3_corpus.bin.gz +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/pach_v4_corpus.bin.gz +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/peptides.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/reaction_pach_v2_corpus.bin.gz +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_apply_scratch_probe.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_arena_f60.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_arena_identity.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_arena_v3_compat.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_arena_v4_compat.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_aromatic_storage.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_atropisomer_axis.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_brace_bond_fields.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_bridgehead_realisability.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_canonical.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_canonical_groups.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_canonical_stereogenic.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_canonicalize_stereo_groups.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_chains.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_cip_assign.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_cip_budget.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_cip_cases.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_cip_digraph.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_cip_ranking.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_cip_storage.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_clean_stereo.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_conformers.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_container_log.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_copy_caches.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_cx_wedges.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_dead_stereo_groups.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_derive.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_descriptors.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_enrich.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_facade.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_featurizer_injection.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_fingerprints.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_geometry.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_h_unknown.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_helical_units.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_hydrogens.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_identity_memo.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_inchi.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_interop_injection.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_isomorphism.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_kekule.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_log.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_meta.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_ml_encoding.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_ml_reaction_transition.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_ml_state_view.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_ml_transition_view.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_ml_unpack_differential.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_modeling_view_frozen.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_molecule.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_monomers.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_morgan.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_nucleotides.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_pach.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_pach3.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_pack.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_planar_units.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_query.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_r_edit.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_r_semantics.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_r_serialisation.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_r_smirks.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_r_storage.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_reaction_identity.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_rings.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_rings_c60.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_set_element.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_sgroups.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_smiles_r.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_smiles_read.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_smiles_stereo_marks.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_smiles_write.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_smiles_write_aromatic.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_smiles_write_cis_trans.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_smiles_write_detached.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_smiles_write_h_unknown.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_smiles_write_sticky.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_smirks_filter.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_smirks_patch.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_smirks_read.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_smirks_report.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_smirks_stereo.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_stereo_acceptance.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_stereo_anchor_identity.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_stereo_group_meaning.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_stereo_group_signs.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_stereo_group_storage.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_stereo_liveness.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_stereo_owners.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_stereo_parity.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_stereo_perception.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_stereo_query.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_stereo_units.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_stereogenicity_symmetry.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_structure.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_thiele_atom_order.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_title.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/test_union_stereo.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/v3_fixtures.py +0 -0
- {chython-3.6 → chython-3.7}/chython/core/test/v4_fixtures.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/__init__.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/_config.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/_hooks.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/bonds.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/colorbar.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/colormap.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/field.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/figure.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/label.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/__init__.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/approved.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/cage.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/cascade.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/clean2d.js +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/edits.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/env.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/features.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/greedy.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/lattice.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/learn/__init__.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/learn/alphazero.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/learn/demos.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/learn/evaluate.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/learn/judge.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/learn/mcts.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/learn/policy.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/learn/replay.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/learn/sweep.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/learn/targets.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/learn/tensors.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/learn/train.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/molecule.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/nucleic.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/peptide.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/pose.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/primitive.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/quality.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/reaction.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/relax.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/review.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/rings.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/score.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/scorecard.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/search.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/shapes.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/templates.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/layout/tree.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/metrics/__init__.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/metrics/helvetica.tsv +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/metrics/times.tsv +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/overlay.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/peptide.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/render/__init__.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/render/svg.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/scene.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/style.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/__init__.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/learn/__init__.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/learn/test_alphazero.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/learn/test_demos.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/learn/test_judge.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/learn/test_mcts.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/learn/test_policy.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/learn/test_replay.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/learn/test_targets.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/learn/test_train.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/test_bonds.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/test_cage.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/test_clean2d.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/test_colorbar.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/test_colormap.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/test_field.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/test_figure.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/test_label.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/test_layout_cascade.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/test_layout_controller.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/test_layout_conventions.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/test_layout_engine.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/test_layout_env.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/test_layout_primitive.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/test_layout_relax.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/test_metrics.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/test_nucleic_layout.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/test_overlay.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/test_package.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/test_peptide_draw.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/test_peptide_layout.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/test_quality.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/test_r_atom.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/test_review.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/test_scene.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/test_scorecard.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/test_style.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/test_svg.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/test_wedge_draw.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/test/test_x3dom.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/wedge.py +0 -0
- {chython-3.6 → chython-3.7}/chython/depict/x3dom.py +0 -0
- {chython-3.6 → chython-3.7}/chython/exceptions.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/__init__.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/_text.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/ctfile/CTFILE.md +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/ctfile/__init__.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/ctfile/_ctab.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/ctfile/_errors.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/ctfile/_facade.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/ctfile/_hydrogens.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/ctfile/_rdf.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/ctfile/_rxn.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/ctfile/_sdf.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/ctfile/_sgroup.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/ctfile/_stream.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/ctfile/_tokens.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/ctfile/_v2000.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/ctfile/_v3000.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/ctfile/test/__init__.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/ctfile/test/test_aromatic.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/ctfile/test/test_container_log.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/ctfile/test/test_data_labels.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/ctfile/test/test_facade.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/ctfile/test/test_r_atom.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/ctfile/test/test_rxn.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/ctfile/test/test_sdf.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/ctfile/test/test_sgroup.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/ctfile/test/test_stereo_drawings.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/ctfile/test/test_stereo_label.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/ctfile/test/test_stream.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/ctfile/test/test_tokens.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/mol2.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/pdb/__init__.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/pdb/_builder.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/pdb/_legacy.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/pdb/_mmcif.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/pdb/_records.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/pdb/_star.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/test/__init__.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/test/conftest.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/test/test_conformance.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/test/test_done_when.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/test/test_isolation.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/test/test_log_prefix.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/test/test_mmcif.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/test/test_mol2.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/test/test_no_review_bookkeeping.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/test/test_pdb.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/test/test_pdb_builder.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/test/test_perceive_agreement.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/test/test_read_only_facades.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/test/test_xyz.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/test/test_xyz_builder.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/xml/__init__.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/xml/_cml.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/xml/_dialect.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/xml/_errors.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/xml/_facade.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/xml/_mrv.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/xml/_tree.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/xml/test/__init__.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/xml/test/conftest.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/xml/test/test_cml.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/xml/test/test_container_log.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/xml/test/test_dead_stereo_groups.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/xml/test/test_dialect.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/xml/test/test_equivalence.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/xml/test/test_facade.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/xml/test/test_mrv.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/xml/test/test_mrv_census.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/xml/test/test_tree.py +0 -0
- {chython-3.6 → chython-3.7}/chython/formats/xyz.py +0 -0
- {chython-3.6 → chython-3.7}/chython/interop/__init__.py +0 -0
- {chython-3.6 → chython-3.7}/chython/interop/_cdk.py +0 -0
- {chython-3.6 → chython-3.7}/chython/interop/_cdpkit.py +0 -0
- {chython-3.6 → chython-3.7}/chython/interop/_indigo.py +0 -0
- {chython-3.6 → chython-3.7}/chython/interop/_iupac.py +0 -0
- {chython-3.6 → chython-3.7}/chython/interop/_java.py +0 -0
- {chython-3.6 → chython-3.7}/chython/interop/_openbabel.py +0 -0
- {chython-3.6 → chython-3.7}/chython/interop/_pandas.py +0 -0
- {chython-3.6 → chython-3.7}/chython/interop/_rdkit.py +0 -0
- {chython-3.6 → chython-3.7}/chython/interop/_records.py +0 -0
- {chython-3.6 → chython-3.7}/chython/interop/_stereo.py +0 -0
- {chython-3.6 → chython-3.7}/chython/interop/config.py +0 -0
- {chython-3.6 → chython-3.7}/chython/interop/conformers.py +0 -0
- {chython-3.6 → chython-3.7}/chython/interop/test/__init__.py +0 -0
- {chython-3.6 → chython-3.7}/chython/interop/test/conftest.py +0 -0
- {chython-3.6 → chython-3.7}/chython/interop/test/test_cdk.py +0 -0
- {chython-3.6 → chython-3.7}/chython/interop/test/test_cdpkit.py +0 -0
- {chython-3.6 → chython-3.7}/chython/interop/test/test_config.py +0 -0
- {chython-3.6 → chython-3.7}/chython/interop/test/test_conformers.py +0 -0
- {chython-3.6 → chython-3.7}/chython/interop/test/test_coordinate_honesty.py +0 -0
- {chython-3.6 → chython-3.7}/chython/interop/test/test_dispatch.py +0 -0
- {chython-3.6 → chython-3.7}/chython/interop/test/test_indigo.py +0 -0
- {chython-3.6 → chython-3.7}/chython/interop/test/test_iupac.py +0 -0
- {chython-3.6 → chython-3.7}/chython/interop/test/test_log_delivery.py +0 -0
- {chython-3.6 → chython-3.7}/chython/interop/test/test_openbabel.py +0 -0
- {chython-3.6 → chython-3.7}/chython/interop/test/test_pandas.py +0 -0
- {chython-3.6 → chython-3.7}/chython/interop/test/test_rdkit.py +0 -0
- {chython-3.6 → chython-3.7}/chython/interop/test/test_stereo.py +0 -0
- {chython-3.6 → chython-3.7}/chython/reactions/__init__.py +0 -0
- {chython-3.6 → chython-3.7}/chython/reactions/_enumerate.py +0 -0
- {chython-3.6 → chython-3.7}/chython/reactions/_numbering.py +0 -0
- {chython-3.6 → chython-3.7}/chython/reactions/_reconstruct.py +0 -0
- {chython-3.6 → chython-3.7}/chython/reactions/_stickers.py +0 -0
- {chython-3.6 → chython-3.7}/chython/reactions/_tables.py +0 -0
- {chython-3.6 → chython-3.7}/chython/reactions/attention/__init__.py +0 -0
- {chython-3.6 → chython-3.7}/chython/reactions/attention/_assign.py +0 -0
- {chython-3.6 → chython-3.7}/chython/reactions/attention/_encode.py +0 -0
- {chython-3.6 → chython-3.7}/chython/reactions/attention/_session.py +0 -0
- {chython-3.6 → chython-3.7}/chython/reactions/tables/protective.tsv +0 -0
- {chython-3.6 → chython-3.7}/chython/reactions/test/__init__.py +0 -0
- {chython-3.6 → chython-3.7}/chython/reactions/test/golden_subset.smi +0 -0
- {chython-3.6 → chython-3.7}/chython/reactions/test/test_attention.py +0 -0
- {chython-3.6 → chython-3.7}/chython/reactions/test/test_attention_assign.py +0 -0
- {chython-3.6 → chython-3.7}/chython/reactions/test/test_attention_encode.py +0 -0
- {chython-3.6 → chython-3.7}/chython/reactions/test/test_attention_isolation.py +0 -0
- {chython-3.6 → chython-3.7}/chython/reactions/test/test_dependency_direction.py +0 -0
- {chython-3.6 → chython-3.7}/chython/reactions/test/test_enumerate.py +0 -0
- {chython-3.6 → chython-3.7}/chython/reactions/test/test_functional.py +0 -0
- {chython-3.6 → chython-3.7}/chython/reactions/test/test_id_stability.py +0 -0
- {chython-3.6 → chython-3.7}/chython/reactions/test/test_numbering.py +0 -0
- {chython-3.6 → chython-3.7}/chython/reactions/test/test_probes.py +0 -0
- {chython-3.6 → chython-3.7}/chython/reactions/test/test_protective.py +0 -0
- {chython-3.6 → chython-3.7}/chython/reactions/test/test_reconstruct.py +0 -0
- {chython-3.6 → chython-3.7}/chython/reactions/test/test_retro.py +0 -0
- {chython-3.6 → chython-3.7}/chython/reactions/test/test_retro_probes.py +0 -0
- {chython-3.6 → chython-3.7}/chython/reactions/test/test_retro_tables.py +0 -0
- {chython-3.6 → chython-3.7}/chython/reactions/test/test_stickers.py +0 -0
- {chython-3.6 → chython-3.7}/chython/reactions/test/test_tables.py +0 -0
- {chython-3.6 → chython-3.7}/chython/test/__init__.py +0 -0
- {chython-3.6 → chython-3.7}/chython/test/test_code_hygiene.py +0 -0
- {chython-3.6 → chython-3.7}/chython/test/test_container_methods.py +0 -0
- {chython-3.6 → chython-3.7}/chython/test/test_doc_figures.py +0 -0
- {chython-3.6 → chython-3.7}/chython/test/test_doc_references.py +0 -0
- {chython-3.6 → chython-3.7}/chython/test/test_doc_samples.py +0 -0
- {chython-3.6 → chython-3.7}/chython/test/test_hydrogen_parity.py +0 -0
- {chython-3.6 → chython-3.7}/chython/test/test_libinchi_staging.py +0 -0
- {chython-3.6 → chython-3.7}/chython/test/test_log_records.py +0 -0
- {chython-3.6 → chython-3.7}/chython/test/test_packaging.py +0 -0
- {chython-3.6 → chython-3.7}/chython/test/test_performance.py +0 -0
- {chython-3.6 → chython-3.7}/chython/test/test_r_atom_integration.py +0 -0
- {chython-3.6 → chython-3.7}/chython/test/test_release_build.py +0 -0
- {chython-3.6 → chython-3.7}/chython/test/test_writer_posture.py +0 -0
- {chython-3.6 → chython-3.7}/chython.egg-info/dependency_links.txt +0 -0
- {chython-3.6 → chython-3.7}/chython.egg-info/requires.txt +0 -0
- {chython-3.6 → chython-3.7}/chython.egg-info/top_level.txt +0 -0
- {chython-3.6 → chython-3.7}/setup.cfg +0 -0
- {chython-3.6 → chython-3.7}/setup.py +0 -0
|
@@ -28,7 +28,7 @@ from chython.core import Log, LogRecord, read_reaction_smiles
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
def test_standardize_runs_on_every_side():
|
|
31
|
-
"""The iron carbonyl is the
|
|
31
|
+
"""The iron carbonyl is a record the standardization patches are known to fire on."""
|
|
32
32
|
r = read_reaction_smiles('C(=O)[Fe](C=O)C=O>>CC.C(=O)[Fe](C=O)C=O')
|
|
33
33
|
assert r.standardize() is True
|
|
34
34
|
assert r.reactants[0].smiles == '[O+]#[C-]~[Fe](~[C-]#[O+])~[C-]#[O+]'
|
|
@@ -19,12 +19,10 @@
|
|
|
19
19
|
"""What `compile_smarts` must get right, stated as behaviour rather than as a token stream.
|
|
20
20
|
|
|
21
21
|
`compile_smarts` calls the core lexer and then numbers the atoms chython 2's way, so most of this
|
|
22
|
-
file pins that the TABLES' dialect is still the dialect the tables were written in.
|
|
23
|
-
|
|
24
|
-
rather than skipped.
|
|
22
|
+
file pins that the TABLES' dialect is still the dialect the tables were written in. The two
|
|
23
|
+
deliberate divergences from chython 2, `z` and `[M]`'s charge, are asserted by name.
|
|
25
24
|
"""
|
|
26
25
|
import pytest
|
|
27
|
-
from ._oracle import ask, needs_oracle
|
|
28
26
|
from chython.chemistry._smarts import SmartsSyntaxError, compile_smarts
|
|
29
27
|
from chython.core import read_smiles
|
|
30
28
|
|
|
@@ -146,7 +144,6 @@ def test_a_metal_combined_with_a_primitive_chython_2_ignored_now_means_it():
|
|
|
146
144
|
|
|
147
145
|
|
|
148
146
|
def test_an_ordinary_atom_does_default_to_neutral_and_non_radical():
|
|
149
|
-
"""Measured against chython 2, which agrees -- so this is not a divergence."""
|
|
150
147
|
assert not _atom_sets('[C]', '[CH3-]')
|
|
151
148
|
assert len(_atom_sets('[C;-]', '[CH3-]')) == 1
|
|
152
149
|
|
|
@@ -225,76 +222,6 @@ def test_the_lexer_accepts_what_the_subset_compiler_could_not(text):
|
|
|
225
222
|
assert len(numbers) == query.atom_count
|
|
226
223
|
|
|
227
224
|
|
|
228
|
-
# --- the chython 2 oracle ---------------------------------------------------------------------- #
|
|
229
|
-
|
|
230
|
-
# (pattern, molecule). Every pattern is drawn from chython 2's own rule tables or is a primitive
|
|
231
|
-
# combination they use; every molecule is a public compound.
|
|
232
|
-
_DIFFERENTIAL = [
|
|
233
|
-
('[P;D4;x0;z1]', 'CP(C)(C)C'),
|
|
234
|
-
# a NEUTRAL sulfide donating to borane: an oxonium salt matches neither engine, since a list of
|
|
235
|
-
# elements constrains charge to neutral in both, and the case would compare two empty sets
|
|
236
|
-
('[B;z1]-[O,S;D3;z1]', 'CS(C)B(C)(C)C'),
|
|
237
|
-
('[N;D3;z2;x2;+]([O;D1;-])([O;D1])=C', 'C=[N+]([O-])O'),
|
|
238
|
-
('[O;D1;z1][N;D3;z1][C,N;z1]', 'ON(C)C'),
|
|
239
|
-
('[C;a]', 'c1ccccc1'),
|
|
240
|
-
('[N;a;r5;D2;h1]', 'c1cc[nH]c1'),
|
|
241
|
-
('[C;D1;h3]', 'CC(=O)OC'),
|
|
242
|
-
('[O;D1;z2]=[C;D3;z2]', 'CC(=O)C'),
|
|
243
|
-
('[C;r6]:[C;r6]', 'c1ccccc1'),
|
|
244
|
-
('[N;D1;z1;x0]-[C;z1]', 'NCC'),
|
|
245
|
-
('[C,N,O]', 'NCCO'),
|
|
246
|
-
('[S;D4](=[O;D1])(=[O;D1])([A])[A]', 'CS(=O)(=O)C'),
|
|
247
|
-
('[C;!R]', 'c1ccccc1CC'),
|
|
248
|
-
('[N;D3;z1]([A])([A])[A]', 'CN(C)C'),
|
|
249
|
-
('[Cl,Br,I;D1]', 'ClCCBr'),
|
|
250
|
-
('[C;x1;z2]=[O;D1]', 'CC=O'),
|
|
251
|
-
('[C;D2;z3]#[N;D1]', 'CC#N'),
|
|
252
|
-
]
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
# Reports the matched atom sets of one `pattern<TAB>molecule` per input line.
|
|
256
|
-
_SCRIPT = """
|
|
257
|
-
from chython import smiles, smarts
|
|
258
|
-
|
|
259
|
-
for line in sys.stdin:
|
|
260
|
-
pattern, _, source = line.rstrip('\\n').partition('\\t')
|
|
261
|
-
if not pattern:
|
|
262
|
-
continue
|
|
263
|
-
hits = {tuple(sorted(m.values())) for m in smarts(pattern).get_mapping(smiles(source))}
|
|
264
|
-
sys.stdout.write('%s\\t%s\\n' % (line.rstrip('\\n'),
|
|
265
|
-
';'.join(','.join(map(str, h)) for h in sorted(hits))))
|
|
266
|
-
"""
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
@pytest.fixture(scope='module')
|
|
270
|
-
def oracle_hits():
|
|
271
|
-
"""`{(pattern, molecule): {atom sets}}` from the pinned chython 2, in one subprocess."""
|
|
272
|
-
stdin = '\n'.join(f'{pattern}\t{molecule}' for pattern, molecule in _DIFFERENTIAL)
|
|
273
|
-
hits = {}
|
|
274
|
-
for line in ask(_SCRIPT, stdin):
|
|
275
|
-
pattern, molecule, sets = line.split('\t')
|
|
276
|
-
hits[(pattern, molecule)] = {frozenset(int(n) for n in s.split(',')) for s in
|
|
277
|
-
sets.split(';') if s}
|
|
278
|
-
assert len(hits) == len(_DIFFERENTIAL)
|
|
279
|
-
return hits
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
@needs_oracle
|
|
283
|
-
@pytest.mark.parametrize('pattern,molecule', _DIFFERENTIAL)
|
|
284
|
-
def test_the_same_smarts_finds_the_same_atoms_as_chython_2(pattern, molecule, oracle_hits):
|
|
285
|
-
"""chython 2 is the oracle for behaviour. Compare the SET OF MATCHED ATOM SETS: the engines may
|
|
286
|
-
enumerate embeddings in different orders and number query atoms differently, and neither is a
|
|
287
|
-
behaviour difference. Out of process, because in-process `from chython import smarts` would read
|
|
288
|
-
the tree under test rather than chython 2.
|
|
289
|
-
"""
|
|
290
|
-
expected = oracle_hits[(pattern, molecule)]
|
|
291
|
-
assert expected, f'chython 2 finds nothing for {pattern!r} on {molecule!r}; useless as a case'
|
|
292
|
-
# chython 2 numbers molecule atoms 1..n in parse order and so does the core reader, so the
|
|
293
|
-
# two atom-number spaces coincide for a SMILES with no explicit atom maps.
|
|
294
|
-
assert _atom_sets(pattern, molecule) == expected
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
@needs_oracle
|
|
298
225
|
def test_z3_deliberately_diverges_from_chython_2():
|
|
299
226
|
"""The one named behaviour change, asserted rather than left implicit.
|
|
300
227
|
|
|
@@ -303,7 +230,5 @@ def test_z3_deliberately_diverges_from_chython_2():
|
|
|
303
230
|
translating this primitive silently stops matching, so the translation is done once per rule at
|
|
304
231
|
extraction time and recorded in the knowledge file.
|
|
305
232
|
"""
|
|
306
|
-
|
|
307
|
-
assert line.split('\t')[2], 'chython 2 calls the allene carbon z3'
|
|
308
|
-
assert not _atom_sets('[C;z3]', 'C=C=C'), 'the core does not: z3 is sp and nothing else'
|
|
233
|
+
assert not _atom_sets('[C;z3]', 'C=C=C'), 'an allene carbon is not z3: z3 is sp and nothing else'
|
|
309
234
|
assert len(_atom_sets('[C;z5]', 'C=C=C')) == 1, 'it is z5 there'
|
|
@@ -16,79 +16,18 @@
|
|
|
16
16
|
# You should have received a copy of the GNU Lesser General Public License
|
|
17
17
|
# along with this program; if not, see <https://www.gnu.org/licenses/>.
|
|
18
18
|
#
|
|
19
|
-
"""
|
|
20
|
-
|
|
21
|
-
deliberate divergence below rather than relaxing the comparison.
|
|
22
|
-
|
|
23
|
-
Version pinning, isolation of the child and skipping when chython 2 is absent live in
|
|
24
|
-
`chython.chemistry.test._oracle`, along with the silent ways this comparison can be made worthless.
|
|
19
|
+
"""The standardization pass over the drawn-wrong corpus: it repairs, it is idempotent, and the
|
|
20
|
+
dative-bond rules leave the donor neutral.
|
|
25
21
|
"""
|
|
26
22
|
import pytest
|
|
27
23
|
|
|
28
|
-
from chython.chemistry.test._oracle import ask, needs_oracle
|
|
29
24
|
from chython.core import read_smiles
|
|
30
25
|
from ._corpus import CORPUS
|
|
31
26
|
import chython.chemistry # noqa: F401
|
|
32
27
|
|
|
33
28
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
_SCRIPT = """
|
|
37
|
-
from chython import smiles
|
|
38
|
-
|
|
39
|
-
for line in sys.stdin:
|
|
40
|
-
line = line.strip()
|
|
41
|
-
if not line:
|
|
42
|
-
continue
|
|
43
|
-
try:
|
|
44
|
-
m = smiles(line)
|
|
45
|
-
m.standardize()
|
|
46
|
-
sys.stdout.write('%s\\t%s\\n' % (line, format(m, 's')))
|
|
47
|
-
except Exception as e:
|
|
48
|
-
sys.stdout.write('%s\\tERROR %s: %s\\n' % (line, type(e).__name__, e))
|
|
49
|
-
"""
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
@pytest.fixture(scope='module')
|
|
53
|
-
def oracle_answers():
|
|
54
|
-
"""`{input smiles: standardized smiles}` from the pinned chython 2, in one subprocess."""
|
|
55
|
-
answers = dict(line.partition('\t')[::2] for line in ask(_SCRIPT, '\n'.join(CORPUS)))
|
|
56
|
-
assert len(answers) == len(CORPUS)
|
|
57
|
-
return answers
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
@needs_oracle
|
|
61
|
-
def test_the_oracle_is_the_version_the_rules_were_ported_against(oracle_answers):
|
|
62
|
-
"""Reaching the fixture at all is the assertion: `ask` checks the version and the import path.
|
|
63
|
-
|
|
64
|
-
Named so a broken oracle fails once with a reason, not as 79 apparent chemistry regressions.
|
|
65
|
-
"""
|
|
66
|
-
assert oracle_answers
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
@needs_oracle
|
|
70
|
-
def test_every_corpus_molecule_standardizes_to_what_chython_2_produces(oracle_answers):
|
|
71
|
-
"""All 79, compared AS MOLECULES: a string comparison would fail on atom order and on which
|
|
72
|
-
resonance partner carries the charge, which are writer differences and not repair differences.
|
|
73
|
-
"""
|
|
74
|
-
disagreements = []
|
|
75
|
-
for source, expected in sorted(oracle_answers.items()):
|
|
76
|
-
assert not expected.startswith('ERROR'), f'the oracle cannot read its own corpus: {source}'
|
|
77
|
-
molecule = read_smiles(source)
|
|
78
|
-
molecule.standardize()
|
|
79
|
-
got = molecule.smiles
|
|
80
|
-
if read_smiles(expected) != read_smiles(got):
|
|
81
|
-
disagreements.append(f'{source}\n chython 2: {expected}\n chython 3: {got}')
|
|
82
|
-
assert not disagreements, (
|
|
83
|
-
f'{len(disagreements)} of {len(CORPUS)} molecules standardize differently. Triage each one '
|
|
84
|
-
'and decide which engine is right -- do not relax this test:\n' + '\n'.join(disagreements))
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
@needs_oracle
|
|
88
|
-
def test_the_comparison_can_fail():
|
|
89
|
-
"""Negative control: a pass that did nothing would agree with the oracle everywhere, so "no
|
|
90
|
-
disagreements" is evidence only while something is actually being repaired.
|
|
91
|
-
"""
|
|
29
|
+
def test_the_pass_repairs_most_of_the_corpus():
|
|
30
|
+
"""Every corpus molecule is drawn wrong, so the pass repairs most of them."""
|
|
92
31
|
changed = 0
|
|
93
32
|
for source in CORPUS:
|
|
94
33
|
molecule = read_smiles(source)
|
|
@@ -101,11 +40,11 @@ def test_the_comparison_can_fail():
|
|
|
101
40
|
|
|
102
41
|
|
|
103
42
|
def test_the_pass_is_idempotent():
|
|
104
|
-
"""Standardizing twice must be standardizing once.
|
|
43
|
+
"""Standardizing twice must be standardizing once.
|
|
105
44
|
|
|
106
|
-
Catches the `D` translation: the core counts a dative bond in an atom's degree
|
|
107
|
-
|
|
108
|
-
|
|
45
|
+
Catches the `D` translation: the core counts a dative bond in an atom's degree, so a rule meaning
|
|
46
|
+
"four single bonds, therefore a formal charge" can fire on an atom whose fourth bond the pass
|
|
47
|
+
itself just made dative.
|
|
109
48
|
"""
|
|
110
49
|
drifting = []
|
|
111
50
|
for source in CORPUS:
|
|
@@ -19,19 +19,16 @@
|
|
|
19
19
|
"""Asking for the aromatic spelling must not silently choose a tautomer.
|
|
20
20
|
|
|
21
21
|
`kekule()` repairs, because it is the boundary where input arrives; `thiele()` must not, because by
|
|
22
|
-
then the data is the library's own arena.
|
|
23
|
-
|
|
22
|
+
then the data is the library's own arena. A hydrogen move belongs to `standardize_isomers`. Both
|
|
23
|
+
halves are pinned here.
|
|
24
24
|
"""
|
|
25
25
|
import pytest
|
|
26
26
|
|
|
27
|
-
from chython.chemistry.test._oracle import ask, needs_oracle
|
|
28
27
|
from chython.core import read_smiles
|
|
29
28
|
import chython.chemistry # noqa: F401
|
|
30
29
|
|
|
31
30
|
|
|
32
|
-
#: 4,7-dihydro-pyrrolo-pyridine drawn with the hydrogen on the wrong nitrogen.
|
|
33
|
-
#: fixture (`algorithms/aromatics/test/test_thiele.py::test_tautomer_fix`), so the divergence is
|
|
34
|
-
#: anchored to their test rather than to ours.
|
|
31
|
+
#: 4,7-dihydro-pyrrolo-pyridine drawn with the hydrogen on the wrong nitrogen.
|
|
35
32
|
SHIFTED = 'N1C=CC2=NC=CC2=C1'
|
|
36
33
|
|
|
37
34
|
#: `{atom: total hydrogens}` as written: atom 1 carries the NH, atom 5 is the bare aromatic N.
|
|
@@ -67,38 +64,9 @@ def test_thiele_reports_no_tautomer_decision_in_its_result():
|
|
|
67
64
|
assert result.refused == []
|
|
68
65
|
|
|
69
66
|
|
|
70
|
-
@needs_oracle
|
|
71
|
-
def test_chython_2_moved_the_hydrogen_and_that_is_the_defect():
|
|
72
|
-
"""Pins the divergence at its source, so nobody 'fixes' V3 back into chython 2's behaviour.
|
|
73
|
-
|
|
74
|
-
Triaged: V3 is right. Both `fix_tautomers` branches are asserted, since the flag being the only
|
|
75
|
-
difference is what makes the hydrogen move a hidden second job.
|
|
76
|
-
"""
|
|
77
|
-
script = """
|
|
78
|
-
from chython import smiles
|
|
79
|
-
|
|
80
|
-
for line in sys.stdin:
|
|
81
|
-
source, _, flag = line.rstrip('\\n').partition('\\t')
|
|
82
|
-
m = smiles(source)
|
|
83
|
-
m.thiele(fix_tautomers=flag == 'on')
|
|
84
|
-
sys.stdout.write('%s\\t%s\\t%s\\n' % (flag, format(m, 's'),
|
|
85
|
-
','.join('%d:%d' % (n, a.total_hydrogens) for n, a in m.atoms())))
|
|
86
|
-
"""
|
|
87
|
-
answers = dict(line.split('\t', 1) for line in ask(script, f'{SHIFTED}\ton\n{SHIFTED}\toff'))
|
|
88
|
-
on_smiles, on_h = answers['on'].split('\t')
|
|
89
|
-
off_smiles, off_h = answers['off'].split('\t')
|
|
90
|
-
|
|
91
|
-
as_written = ','.join(f'{n}:{h}' for n, h in AS_WRITTEN.items())
|
|
92
|
-
assert off_h == as_written, 'chython 2 leaves the hydrogens alone with the flag off'
|
|
93
|
-
assert on_h != as_written, (
|
|
94
|
-
'chython 2 no longer moves the hydrogen, so this divergence is stale -- re-triage it rather '
|
|
95
|
-
'than deleting the test')
|
|
96
|
-
assert on_smiles != off_smiles
|
|
97
|
-
|
|
98
|
-
|
|
99
67
|
def test_the_hydrogen_move_belongs_to_standardize_isomers():
|
|
100
|
-
"""The hydrogen move
|
|
101
|
-
|
|
68
|
+
"""The hydrogen move is `standardize_isomers`' own: an azole N-H outranks an azine N-H, so the
|
|
69
|
+
hydrogen goes to atom 5, not atom 1.
|
|
102
70
|
"""
|
|
103
71
|
molecule = read_smiles(SHIFTED)
|
|
104
72
|
molecule.thiele()
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
# You should have received a copy of the GNU Lesser General Public License
|
|
17
17
|
# along with this program; if not, see <https://www.gnu.org/licenses/>.
|
|
18
18
|
#
|
|
19
|
-
"""Every `z` translation in `Z3_MAP`,
|
|
19
|
+
"""Every `z` translation in `Z3_MAP`, checked against a representative molecule per pattern.
|
|
20
20
|
|
|
21
21
|
chython 2 saturates `z` and caps it at 3; the core reports what it found -- 3 is sp and nothing else,
|
|
22
22
|
5 is two cumulated doubles with no triple, 6 is any other combination. Copying a `z3` across
|
|
@@ -24,16 +24,12 @@ narrows the pattern, and a narrowed prefilter does not raise: the rule silently
|
|
|
24
24
|
"""
|
|
25
25
|
import pytest
|
|
26
26
|
|
|
27
|
-
from .
|
|
28
|
-
from .gen_standardize_rules import TARGET, Z3_MAP
|
|
27
|
+
from .gen_standardize_rules import Z3_MAP
|
|
29
28
|
from .._smarts import compile_smarts
|
|
30
29
|
from chython.core import read_smiles
|
|
31
|
-
from chython.core._core import element_symbols
|
|
32
30
|
|
|
33
31
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
# V2 pattern -> a molecule the V2 pattern demonstrably matches. `+` marks the seven written by hand
|
|
32
|
+
# V2 pattern -> a molecule the V2 pattern matches. `+` marks the seven written by hand
|
|
37
33
|
# because nothing in the standardization corpus reaches that pattern.
|
|
38
34
|
REPRESENTATIVES = {
|
|
39
35
|
# Group A -- genuine sp, `z3` stays `z3`: every one of these writes a triple bond on the `z3` atom
|
|
@@ -77,23 +73,6 @@ REPRESENTATIVES = {
|
|
|
77
73
|
'[S;D4;z3;-](=[O;D1])(=[O;D1])(=[O;D1])[A]': 'C[S-](=O)(=O)=O', # +
|
|
78
74
|
}
|
|
79
75
|
|
|
80
|
-
# Runs inside the oracle: one pattern per input line, answered as sorted atom numbers. Keep it
|
|
81
|
-
# reporting data only -- interpretation belongs on this side, where it is testable.
|
|
82
|
-
_SCRIPT = """
|
|
83
|
-
from chython import smiles, smarts
|
|
84
|
-
|
|
85
|
-
for line in sys.stdin:
|
|
86
|
-
line = line.rstrip('\\n')
|
|
87
|
-
if not line:
|
|
88
|
-
continue
|
|
89
|
-
pattern, _, source = line.partition('\\t')
|
|
90
|
-
molecule = smiles(source)
|
|
91
|
-
sites = {tuple(sorted(m.values())) for m in smarts(pattern).get_mapping(molecule)}
|
|
92
|
-
elements = ','.join('%d:%s' % (n, a.atomic_symbol) for n, a in molecule.atoms())
|
|
93
|
-
sys.stdout.write('%s\\t%s\\t%s\\n' % (line, elements,
|
|
94
|
-
';'.join(','.join(map(str, s)) for s in sorted(sites))))
|
|
95
|
-
"""
|
|
96
|
-
|
|
97
76
|
|
|
98
77
|
def _sites(pattern: str, source: str):
|
|
99
78
|
"""Which atom sets the pattern covers in the core. A set, because automorphisms repeat one."""
|
|
@@ -102,20 +81,6 @@ def _sites(pattern: str, source: str):
|
|
|
102
81
|
return {tuple(sorted(mapping.values())) for mapping in query.get_mapping(molecule)}
|
|
103
82
|
|
|
104
83
|
|
|
105
|
-
@pytest.fixture(scope='module')
|
|
106
|
-
def oracle():
|
|
107
|
-
"""`{(pattern, source): (numbering, sites)}` from the pinned chython 2, in one subprocess."""
|
|
108
|
-
stdin = '\n'.join(f'{pattern}\t{source}' for pattern, source in sorted(REPRESENTATIVES.items()))
|
|
109
|
-
|
|
110
|
-
answers = {}
|
|
111
|
-
for line in ask(_SCRIPT, stdin):
|
|
112
|
-
pattern, source, elements, sites = line.split('\t')
|
|
113
|
-
answers[(pattern, source)] = (
|
|
114
|
-
elements, {tuple(int(n) for n in s.split(',')) for s in sites.split(';') if s})
|
|
115
|
-
assert len(answers) == len(REPRESENTATIVES)
|
|
116
|
-
return answers
|
|
117
|
-
|
|
118
|
-
|
|
119
84
|
def test_every_translated_primitive_has_a_representative():
|
|
120
85
|
"""`Z3_MAP` and `REPRESENTATIVES` cover each other exactly, in both directions."""
|
|
121
86
|
assert set(REPRESENTATIVES) == set(Z3_MAP), (
|
|
@@ -124,48 +89,17 @@ def test_every_translated_primitive_has_a_representative():
|
|
|
124
89
|
f'{sorted(set(REPRESENTATIVES) - set(Z3_MAP))}')
|
|
125
90
|
|
|
126
91
|
|
|
127
|
-
@needs_oracle
|
|
128
|
-
@pytest.mark.parametrize('pattern', sorted(REPRESENTATIVES))
|
|
129
|
-
def test_a_translated_pattern_finds_what_chython_2_finds(pattern, oracle):
|
|
130
|
-
"""A translated pattern covers the same atoms chython 2 covers -- nothing dropped.
|
|
131
|
-
|
|
132
|
-
Parametrized one rule at a time so a failure names the rule that went quiet.
|
|
133
|
-
"""
|
|
134
|
-
source = REPRESENTATIVES[pattern]
|
|
135
|
-
numbering, expected = oracle[(pattern, source)]
|
|
136
|
-
assert expected, f'the oracle finds nothing for {pattern!r} on {source!r}; wrong representative'
|
|
137
|
-
|
|
138
|
-
molecule = read_smiles(source)
|
|
139
|
-
mine = ','.join(f'{n}:{SYMBOLS[molecule.element_of(n)]}' for n in molecule.atom_numbers)
|
|
140
|
-
assert mine == numbering, (
|
|
141
|
-
f'the two parsers number {source!r} differently, so the site comparison below would be '
|
|
142
|
-
f'comparing labels rather than atoms:\n chython 2: {numbering}\n chython 3: {mine}')
|
|
143
|
-
|
|
144
|
-
group, _ = Z3_MAP[pattern]
|
|
145
|
-
translated = pattern.replace('z3', TARGET[group])
|
|
146
|
-
assert _sites(translated, source) == expected, (
|
|
147
|
-
f'group {group}: {pattern!r} -> {translated!r} does not cover the same atoms of {source!r} '
|
|
148
|
-
f'that chython 2 covers. A NARROWER match here means the rule stopped repairing something')
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
@needs_oracle
|
|
152
92
|
@pytest.mark.parametrize('pattern', sorted(p for p, (g, _) in Z3_MAP.items() if g != 'A'))
|
|
153
|
-
def test_the_untranslated_pattern_would_have_dropped_the_match(pattern
|
|
154
|
-
"""
|
|
155
|
-
|
|
156
|
-
Without this, the test above is satisfiable by a `z` that narrows nothing.
|
|
157
|
-
"""
|
|
93
|
+
def test_the_untranslated_pattern_would_have_dropped_the_match(pattern):
|
|
94
|
+
"""An untranslated `z3` matches nothing, so the translation was necessary."""
|
|
158
95
|
source = REPRESENTATIVES[pattern]
|
|
159
|
-
_, expected = oracle[(pattern, source)]
|
|
160
|
-
assert expected
|
|
161
96
|
assert not _sites(pattern, source), (
|
|
162
97
|
f'{pattern!r} still matches {source!r} in the core with its `z3` untouched. Either the '
|
|
163
98
|
"core's `z3` has widened -- in which case Z3_MAP needs re-deriving, not this test relaxing "
|
|
164
99
|
'-- or this representative no longer isolates the primitive')
|
|
165
100
|
|
|
166
101
|
|
|
167
|
-
|
|
168
|
-
def test_group_a_keeps_z3_because_a_triple_bond_is_written_beside_it(oracle):
|
|
102
|
+
def test_group_a_keeps_z3_because_a_triple_bond_is_written_beside_it():
|
|
169
103
|
"""Group A keeps `z3` only because every one of its patterns writes an explicit `#` bond.
|
|
170
104
|
|
|
171
105
|
The core's `z3` is the narrowest of the three values, so leaving one alone is the riskiest
|
|
@@ -242,10 +242,9 @@ DEF H_UNKNOWN = 15 # ... 15 is not a count there, it is "nobody knows"
|
|
|
242
242
|
# a measurement. So no comment or test in this file quotes a population as the reason -- if one
|
|
243
243
|
# needs a number, it names the corpus and the reader that produced it, and both change.
|
|
244
244
|
#
|
|
245
|
-
#
|
|
246
|
-
#
|
|
247
|
-
#
|
|
248
|
-
# it would just make the mass, the formula and the valence quietly wrong. 15 rather than a separate
|
|
245
|
+
# `implicit_h_of` answers None for this population, and `int(None)` raising in a caller's arithmetic
|
|
246
|
+
# is the point: a fabricated 0 would not raise, it would just make the mass, the formula and the
|
|
247
|
+
# valence quietly wrong. 15 rather than a separate
|
|
249
248
|
# flag byte because the nibble already had a value nobody could reach -- no atom carries fifteen
|
|
250
249
|
# implicit hydrogens -- so the state costs no space and cannot be lost by a writer that forgets it.
|
|
251
250
|
|
|
@@ -538,7 +538,7 @@ cdef object _standardize_fn():
|
|
|
538
538
|
demand would work, and it was written that way first, but it makes the bottom layer name the
|
|
539
539
|
package above it -- a cycle that is merely lazy rather than absent. It also breaks the core's
|
|
540
540
|
hard invariant that `chython/core/` imports nothing from this distribution but `chython.core`
|
|
541
|
-
(`core/test/
|
|
541
|
+
(`core/test/test_core_isolation.py`); an exception carved out for one sibling is an
|
|
542
542
|
exception someone later widens.
|
|
543
543
|
|
|
544
544
|
The cost is this message, for the narrow case of importing `chython.core` directly and calling
|
|
@@ -708,7 +708,7 @@ cdef object _depict_fn(object impl, str name):
|
|
|
708
708
|
"""The registered body, or an error that names the package which registers it.
|
|
709
709
|
|
|
710
710
|
NO FALLBACK IMPORT, for the reason `_standardize_fn` states at length: a lazy cycle is still a
|
|
711
|
-
cycle, and `core/test/
|
|
711
|
+
cycle, and `core/test/test_core_isolation.py` holds the core to importing nothing from
|
|
712
712
|
this distribution but `chython.core`.
|
|
713
713
|
|
|
714
714
|
`ImportError` and not `NotImplementedError`: the method is not unimplemented, it is unregistered,
|
|
@@ -128,10 +128,9 @@
|
|
|
128
128
|
#
|
|
129
129
|
# The fifteenth is not a bare atom: phosphorus at three bonds with `-O =O` should by the curated row
|
|
130
130
|
# carry two hydrogens (phosphorous acid), but the common valence 3 row sits at the same key with zero
|
|
131
|
-
# and is scanned first, so the curated row's two-hydrogen state is unreachable. The
|
|
132
|
-
# `
|
|
133
|
-
#
|
|
134
|
-
# chemistry.
|
|
131
|
+
# and is scanned first, so the curated row's two-hydrogen state is unreachable. The rows live in
|
|
132
|
+
# `valence_rules.tsv`, so changing this means deleting or re-keying a row there -- not a change to
|
|
133
|
+
# this file -- and it must be argued on chemistry.
|
|
135
134
|
#
|
|
136
135
|
# ELEMENT DATA HANGS OFF AN ATOMIC NUMBER, NOT OFF A PER-ELEMENT TYPE.
|
|
137
136
|
#
|