chython 3.5__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.
Files changed (564) hide show
  1. {chython-3.5/chython.egg-info → chython-3.7}/PKG-INFO +3 -1
  2. {chython-3.5 → chython-3.7}/chython/__init__.py +20 -13
  3. {chython-3.5 → chython-3.7}/chython/chemistry/_isomers.py +6 -3
  4. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_isomers.py +12 -0
  5. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_reaction_passes.py +1 -1
  6. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_smarts.py +3 -78
  7. chython-3.5/chython/chemistry/test/test_standardize_differential.py → chython-3.7/chython/chemistry/test/test_standardize_corpus.py +8 -69
  8. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_thiele_is_single_purpose.py +5 -37
  9. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_z_translation.py +6 -72
  10. {chython-3.5 → chython-3.7}/chython/core/_molecule_arena.pxi +3 -4
  11. {chython-3.5 → chython-3.7}/chython/core/_molecule_container.pxi +16 -9
  12. {chython-3.5 → chython-3.7}/chython/core/_smirks_patch.pxi +5 -3
  13. {chython-3.5 → chython-3.7}/chython/core/_smirks_read.pxi +8 -2
  14. {chython-3.5 → chython-3.7}/chython/core/_stereo.pxi +144 -0
  15. {chython-3.5 → chython-3.7}/chython/core/_valence.pxi +3 -4
  16. {chython-3.5 → chython-3.7}/chython/core/chains.py +22 -8
  17. {chython-3.5 → chython-3.7}/chython/core/monomers.py +46 -0
  18. chython-3.7/chython/core/nucleotides.py +106 -0
  19. {chython-3.5 → chython-3.7}/chython/core/reaction.py +5 -5
  20. {chython-3.5 → chython-3.7}/chython/core/test/gen_valence_rules.py +26 -202
  21. {chython-3.5 → chython-3.7}/chython/core/test/reaction_pach_corpus.py +5 -9
  22. {chython-3.5 → chython-3.7}/chython/core/test/test_aggregates.py +3 -51
  23. {chython-3.5 → chython-3.7}/chython/core/test/test_alternative_spellings.py +0 -64
  24. {chython-3.5 → chython-3.7}/chython/core/test/test_canonical_mirror.py +7 -25
  25. {chython-3.5 → chython-3.7}/chython/core/test/test_chains.py +12 -0
  26. {chython-3.5 → chython-3.7}/chython/core/test/test_clean_isotopes_and_coordinate_bonds.py +2 -79
  27. chython-3.5/chython/core/test/test_no_chython_two_imports.py → chython-3.7/chython/core/test/test_core_isolation.py +15 -49
  28. {chython-3.5 → chython-3.7}/chython/core/test/test_dead_stereo_groups.py +43 -0
  29. {chython-3.5 → chython-3.7}/chython/core/test/test_element_tables.py +1 -102
  30. {chython-3.5 → chython-3.7}/chython/core/test/test_enrich.py +13 -1
  31. {chython-3.5 → chython-3.7}/chython/core/test/test_features.py +1 -2
  32. {chython-3.5 → chython-3.7}/chython/core/test/test_magic.py +4 -5
  33. {chython-3.5 → chython-3.7}/chython/core/test/test_monomers.py +14 -0
  34. chython-3.7/chython/core/test/test_nucleotides.py +52 -0
  35. {chython-3.5 → chython-3.7}/chython/core/test/test_r_query.py +1 -1
  36. {chython-3.5 → chython-3.7}/chython/core/test/test_reaction_container.py +16 -121
  37. {chython-3.5 → chython-3.7}/chython/core/test/test_reaction_pach.py +1 -1
  38. {chython-3.5 → chython-3.7}/chython/core/test/test_reaction_passes.py +1 -1
  39. {chython-3.5 → chython-3.7}/chython/core/test/test_reaction_smiles.py +1 -58
  40. {chython-3.5 → chython-3.7}/chython/core/test/test_smarts_read.py +8 -317
  41. chython-3.7/chython/core/test/test_smiles_roundtrip.py +137 -0
  42. {chython-3.5 → chython-3.7}/chython/core/test/test_smiles_write_stereo.py +9 -0
  43. {chython-3.5 → chython-3.7}/chython/core/test/test_smirks_filter.py +16 -0
  44. {chython-3.5 → chython-3.7}/chython/core/test/test_thiele.py +1 -2
  45. {chython-3.5 → chython-3.7}/chython/core/test/test_topology.py +0 -68
  46. {chython-3.5 → chython-3.7}/chython/core/test/test_valence.py +24 -233
  47. {chython-3.5 → chython-3.7}/chython/core/test/test_view_surface.py +1 -1
  48. {chython-3.5 → chython-3.7}/chython/core/valence_rules.tsv +1 -2
  49. {chython-3.5 → chython-3.7}/chython/core/wedge.py +6 -5
  50. {chython-3.5 → chython-3.7}/chython/depict/__init__.py +6 -6
  51. {chython-3.5 → chython-3.7}/chython/depict/_config.py +27 -9
  52. {chython-3.5 → chython-3.7}/chython/depict/bonds.py +28 -3
  53. {chython-3.5 → chython-3.7}/chython/depict/figure.py +25 -9
  54. chython-3.7/chython/depict/layout/cage.py +288 -0
  55. {chython-3.5 → chython-3.7}/chython/depict/layout/cascade.py +262 -58
  56. {chython-3.5 → chython-3.7}/chython/depict/layout/molecule.py +145 -80
  57. chython-3.7/chython/depict/layout/nucleic.py +118 -0
  58. {chython-3.5 → chython-3.7}/chython/depict/layout/peptide.py +265 -37
  59. {chython-3.5 → chython-3.7}/chython/depict/layout/primitive.py +145 -13
  60. {chython-3.5 → chython-3.7}/chython/depict/layout/reaction.py +7 -6
  61. {chython-3.5 → chython-3.7}/chython/depict/layout/relax.py +13 -3
  62. {chython-3.5 → chython-3.7}/chython/depict/layout/review.py +4 -2
  63. {chython-3.5 → chython-3.7}/chython/depict/layout/score.py +2 -1
  64. {chython-3.5 → chython-3.7}/chython/depict/layout/scorecard.py +4 -4
  65. chython-3.7/chython/depict/layout/shapes.py +690 -0
  66. {chython-3.5 → chython-3.7}/chython/depict/peptide.py +16 -2
  67. chython-3.7/chython/depict/test/test_cage.py +215 -0
  68. {chython-3.5 → chython-3.7}/chython/depict/test/test_clean2d.py +97 -6
  69. {chython-3.5 → chython-3.7}/chython/depict/test/test_layout_cascade.py +166 -2
  70. {chython-3.5 → chython-3.7}/chython/depict/test/test_layout_conventions.py +6 -9
  71. {chython-3.5 → chython-3.7}/chython/depict/test/test_layout_env.py +1 -1
  72. {chython-3.5 → chython-3.7}/chython/depict/test/test_layout_primitive.py +66 -1
  73. chython-3.7/chython/depict/test/test_nucleic_layout.py +69 -0
  74. {chython-3.5 → chython-3.7}/chython/depict/test/test_peptide_draw.py +55 -15
  75. {chython-3.5 → chython-3.7}/chython/depict/test/test_peptide_layout.py +160 -51
  76. {chython-3.5 → chython-3.7}/chython/depict/wedge.py +11 -6
  77. {chython-3.5 → chython-3.7}/chython/formats/ctfile/test/conftest.py +0 -49
  78. {chython-3.5 → chython-3.7}/chython/formats/ctfile/test/test_fidelity.py +0 -90
  79. {chython-3.5 → chython-3.7}/chython/formats/ctfile/test/test_hydrogens.py +3 -61
  80. {chython-3.5 → chython-3.7}/chython/formats/ctfile/test/test_rdf.py +0 -48
  81. {chython-3.5 → chython-3.7}/chython/formats/ctfile/test/test_v2000.py +6 -84
  82. {chython-3.5 → chython-3.7}/chython/formats/ctfile/test/test_v3000.py +1 -29
  83. {chython-3.5 → chython-3.7}/chython/formats/ctfile/test/test_wedge.py +7 -176
  84. {chython-3.5 → chython-3.7}/chython/formats/test/oracles.py +1 -1
  85. {chython-3.5 → chython-3.7}/chython/formats/test/test_oracles.py +1 -1
  86. {chython-3.5 → chython-3.7}/chython/reactions/_enumerate.py +129 -17
  87. {chython-3.5 → chython-3.7}/chython/reactions/_reconstruct.py +129 -15
  88. {chython-3.5 → chython-3.7}/chython/reactions/tables/functional.tsv +6 -5
  89. chython-3.7/chython/reactions/tables/protective.tsv +130 -0
  90. {chython-3.5 → chython-3.7}/chython/reactions/tables/reactions.tsv +3 -3
  91. {chython-3.5 → chython-3.7}/chython/reactions/tables/roles.tsv +12 -6
  92. {chython-3.5 → chython-3.7}/chython/reactions/test/_frozen_ids.py +19 -12
  93. {chython-3.5 → chython-3.7}/chython/reactions/test/test_functional.py +15 -0
  94. {chython-3.5 → chython-3.7}/chython/reactions/test/test_protective.py +46 -1
  95. {chython-3.5 → chython-3.7}/chython/reactions/test/test_reconstruct.py +82 -25
  96. {chython-3.5 → chython-3.7}/chython/reactions/test/test_reconstruct_labels.py +4 -0
  97. {chython-3.5 → chython-3.7}/chython/reactions/test/test_roles.py +64 -4
  98. {chython-3.5 → chython-3.7}/chython/test/test_facade_names.py +8 -2
  99. {chython-3.5 → chython-3.7}/chython/test/test_optional_numpy.py +3 -3
  100. {chython-3.5 → chython-3.7}/chython/test/test_stereo_bluebook.py +1 -1
  101. {chython-3.5 → chython-3.7}/chython/test/test_v2_boundary.py +2 -8
  102. {chython-3.5 → chython-3.7/chython.egg-info}/PKG-INFO +3 -1
  103. {chython-3.5 → chython-3.7}/chython.egg-info/SOURCES.txt +8 -10
  104. {chython-3.5 → chython-3.7}/chython.egg-info/requires.txt +3 -0
  105. {chython-3.5 → chython-3.7}/pyproject.toml +4 -1
  106. chython-3.5/chython/chemistry/test/_oracle.py +0 -49
  107. chython-3.5/chython/core/test/gen_reaction_pach_corpus.py +0 -153
  108. chython-3.5/chython/core/test/oracle.py +0 -707
  109. chython-3.5/chython/core/test/test_oracle.py +0 -238
  110. chython-3.5/chython/core/test/test_reaction_patch_stereo.py +0 -162
  111. chython-3.5/chython/core/test/test_smiles_roundtrip.py +0 -349
  112. chython-3.5/chython/core/test/test_smiles_write_differential.py +0 -879
  113. chython-3.5/chython/core/test/test_stereo_v2_differential.py +0 -235
  114. chython-3.5/chython/depict/layout/shapes.py +0 -332
  115. chython-3.5/chython/interop/test/test_v2_oracle.py +0 -480
  116. chython-3.5/chython/reactions/tables/protective.tsv +0 -128
  117. {chython-3.5 → chython-3.7}/LICENSE +0 -0
  118. {chython-3.5 → chython-3.7}/MANIFEST.in +0 -0
  119. {chython-3.5 → chython-3.7}/README.md +0 -0
  120. {chython-3.5 → chython-3.7}/build_inchi.py +0 -0
  121. {chython-3.5 → chython-3.7}/chython/_functions.py +0 -0
  122. {chython-3.5 → chython-3.7}/chython/chemistry/__init__.py +0 -0
  123. {chython-3.5 → chython-3.7}/chython/chemistry/_abbreviations.py +0 -0
  124. {chython-3.5 → chython-3.7}/chython/chemistry/_canonicalize.py +0 -0
  125. {chython-3.5 → chython-3.7}/chython/chemistry/_counts.py +0 -0
  126. {chython-3.5 → chython-3.7}/chython/chemistry/_crippen.py +0 -0
  127. {chython-3.5 → chython-3.7}/chython/chemistry/_hydrogens.py +0 -0
  128. {chython-3.5 → chython-3.7}/chython/chemistry/_implicit.py +0 -0
  129. {chython-3.5 → chython-3.7}/chython/chemistry/_kekule_form.py +0 -0
  130. {chython-3.5 → chython-3.7}/chython/chemistry/_maccs.py +0 -0
  131. {chython-3.5 → chython-3.7}/chython/chemistry/_organometallics.py +0 -0
  132. {chython-3.5 → chython-3.7}/chython/chemistry/_perceive.py +0 -0
  133. {chython-3.5 → chython-3.7}/chython/chemistry/_pharmacophore.py +0 -0
  134. {chython-3.5 → chython-3.7}/chython/chemistry/_protomers.py +0 -0
  135. {chython-3.5 → chython-3.7}/chython/chemistry/_qed.py +0 -0
  136. {chython-3.5 → chython-3.7}/chython/chemistry/_residues.py +0 -0
  137. {chython-3.5 → chython-3.7}/chython/chemistry/_resonance.py +0 -0
  138. {chython-3.5 → chython-3.7}/chython/chemistry/_salts.py +0 -0
  139. {chython-3.5 → chython-3.7}/chython/chemistry/_saturate.py +0 -0
  140. {chython-3.5 → chython-3.7}/chython/chemistry/_smarts.py +0 -0
  141. {chython-3.5 → chython-3.7}/chython/chemistry/_standardize.py +0 -0
  142. {chython-3.5 → chython-3.7}/chython/chemistry/_stereo_audit.py +0 -0
  143. {chython-3.5 → chython-3.7}/chython/chemistry/_tables.py +0 -0
  144. {chython-3.5 → chython-3.7}/chython/chemistry/_tpsa.py +0 -0
  145. {chython-3.5 → chython-3.7}/chython/chemistry/tables/abbreviations.tsv +0 -0
  146. {chython-3.5 → chython-3.7}/chython/chemistry/tables/acids.tsv +0 -0
  147. {chython-3.5 → chython-3.7}/chython/chemistry/tables/covalent_radii.tsv +0 -0
  148. {chython-3.5 → chython-3.7}/chython/chemistry/tables/crippen.tsv +0 -0
  149. {chython-3.5 → chython-3.7}/chython/chemistry/tables/hbond.tsv +0 -0
  150. {chython-3.5 → chython-3.7}/chython/chemistry/tables/maccs.tsv +0 -0
  151. {chython-3.5 → chython-3.7}/chython/chemistry/tables/maccs_corpus.tsv +0 -0
  152. {chython-3.5 → chython-3.7}/chython/chemistry/tables/pharmacophore.tsv +0 -0
  153. {chython-3.5 → chython-3.7}/chython/chemistry/tables/qed_alerts.tsv +0 -0
  154. {chython-3.5 → chython-3.7}/chython/chemistry/tables/residues.tsv +0 -0
  155. {chython-3.5 → chython-3.7}/chython/chemistry/tables/resonance.tsv +0 -0
  156. {chython-3.5 → chython-3.7}/chython/chemistry/tables/rotatable.tsv +0 -0
  157. {chython-3.5 → chython-3.7}/chython/chemistry/tables/salts.tsv +0 -0
  158. {chython-3.5 → chython-3.7}/chython/chemistry/tables/standardize_groups.tsv +0 -0
  159. {chython-3.5 → chython-3.7}/chython/chemistry/tables/standardize_metals.tsv +0 -0
  160. {chython-3.5 → chython-3.7}/chython/chemistry/tables/stereo_audit.tsv +0 -0
  161. {chython-3.5 → chython-3.7}/chython/chemistry/tables/sybyl_types.tsv +0 -0
  162. {chython-3.5 → chython-3.7}/chython/chemistry/tables/tpsa.tsv +0 -0
  163. {chython-3.5 → chython-3.7}/chython/chemistry/test/__init__.py +0 -0
  164. {chython-3.5 → chython-3.7}/chython/chemistry/test/_corpus.py +0 -0
  165. {chython-3.5 → chython-3.7}/chython/chemistry/test/gen_standardize_rules.py +0 -0
  166. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_abbreviations.py +0 -0
  167. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_acids_tsv.py +0 -0
  168. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_canonicalize.py +0 -0
  169. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_canonicalize_atom_order.py +0 -0
  170. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_counts.py +0 -0
  171. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_covalent_radii_tsv.py +0 -0
  172. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_crippen.py +0 -0
  173. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_crippen_tsv.py +0 -0
  174. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_dependency_direction.py +0 -0
  175. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_featurizer_injection.py +0 -0
  176. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_featurizer_tables_lazy.py +0 -0
  177. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_kekule_form.py +0 -0
  178. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_maccs.py +0 -0
  179. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_maccs_corpus.py +0 -0
  180. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_maccs_tsv.py +0 -0
  181. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_organometallics.py +0 -0
  182. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_perceive.py +0 -0
  183. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_pharmacophore.py +0 -0
  184. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_protomers.py +0 -0
  185. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_qed.py +0 -0
  186. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_qed_alerts_tsv.py +0 -0
  187. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_reaction_hydrogen_repair.py +0 -0
  188. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_residues.py +0 -0
  189. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_resonance.py +0 -0
  190. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_resonance_tsv.py +0 -0
  191. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_salts.py +0 -0
  192. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_saturate.py +0 -0
  193. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_standardize_groups_port.py +0 -0
  194. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_standardize_overvalent_nitrogen.py +0 -0
  195. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_standardize_rules_examples.py +0 -0
  196. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_standardize_rules_merges.py +0 -0
  197. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_standardize_rules_tsv.py +0 -0
  198. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_stereo_audit.py +0 -0
  199. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_tpsa.py +0 -0
  200. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_tpsa_tsv.py +0 -0
  201. {chython-3.5 → chython-3.7}/chython/chemistry/test/test_valence_report.py +0 -0
  202. {chython-3.5 → chython-3.7}/chython/core/RULES.md +0 -0
  203. {chython-3.5 → chython-3.7}/chython/core/__init__.py +0 -0
  204. {chython-3.5 → chython-3.7}/chython/core/_canonical.pxi +0 -0
  205. {chython-3.5 → chython-3.7}/chython/core/_cip.pxi +0 -0
  206. {chython-3.5 → chython-3.7}/chython/core/_core.pyx +0 -0
  207. {chython-3.5 → chython-3.7}/chython/core/_descriptors.pxi +0 -0
  208. {chython-3.5 → chython-3.7}/chython/core/_elements.pxi +0 -0
  209. {chython-3.5 → chython-3.7}/chython/core/_facade.py +0 -0
  210. {chython-3.5 → chython-3.7}/chython/core/_features.pxi +0 -0
  211. {chython-3.5 → chython-3.7}/chython/core/_fingerprints.pxi +0 -0
  212. {chython-3.5 → chython-3.7}/chython/core/_hydrogens.pxi +0 -0
  213. {chython-3.5 → chython-3.7}/chython/core/_inchi.pxi +0 -0
  214. {chython-3.5 → chython-3.7}/chython/core/_isomorphism.pxi +0 -0
  215. {chython-3.5 → chython-3.7}/chython/core/_kekule.pxi +0 -0
  216. {chython-3.5 → chython-3.7}/chython/core/_layout_score.pxi +0 -0
  217. {chython-3.5 → chython-3.7}/chython/core/_log.py +0 -0
  218. {chython-3.5 → chython-3.7}/chython/core/_ml.pxi +0 -0
  219. {chython-3.5 → chython-3.7}/chython/core/_molecule_topology.pxi +0 -0
  220. {chython-3.5 → chython-3.7}/chython/core/_molecule_views.pxi +0 -0
  221. {chython-3.5 → chython-3.7}/chython/core/_morgan.pxi +0 -0
  222. {chython-3.5 → chython-3.7}/chython/core/_pach.pxi +0 -0
  223. {chython-3.5 → chython-3.7}/chython/core/_pach3.pxi +0 -0
  224. {chython-3.5 → chython-3.7}/chython/core/_query_arena.pxi +0 -0
  225. {chython-3.5 → chython-3.7}/chython/core/_query_boxes.pxi +0 -0
  226. {chython-3.5 → chython-3.7}/chython/core/_query_container.pxi +0 -0
  227. {chython-3.5 → chython-3.7}/chython/core/_query_seal.pxi +0 -0
  228. {chython-3.5 → chython-3.7}/chython/core/_reaction_passes.py +0 -0
  229. {chython-3.5 → chython-3.7}/chython/core/_rings.pxi +0 -0
  230. {chython-3.5 → chython-3.7}/chython/core/_smarts_read.pxi +0 -0
  231. {chython-3.5 → chython-3.7}/chython/core/_smiles_read.pxi +0 -0
  232. {chython-3.5 → chython-3.7}/chython/core/_smiles_write.pxi +0 -0
  233. {chython-3.5 → chython-3.7}/chython/core/_sssr.pxi +0 -0
  234. {chython-3.5 → chython-3.7}/chython/core/_stereo_meaning.pxi +0 -0
  235. {chython-3.5 → chython-3.7}/chython/core/_thiele.pxi +0 -0
  236. {chython-3.5 → chython-3.7}/chython/core/elements.tsv +0 -0
  237. {chython-3.5 → chython-3.7}/chython/core/isotopes.tsv +0 -0
  238. {chython-3.5 → chython-3.7}/chython/core/test/__init__.py +0 -0
  239. {chython-3.5 → chython-3.7}/chython/core/test/arena_v4_corpus.bin.gz +0 -0
  240. {chython-3.5 → chython-3.7}/chython/core/test/bench_ml.py +0 -0
  241. {chython-3.5 → chython-3.7}/chython/core/test/chytorch_oracle.py +0 -0
  242. {chython-3.5 → chython-3.7}/chython/core/test/gen_element_tables.py +0 -0
  243. {chython-3.5 → chython-3.7}/chython/core/test/gen_modeling_view_corpus.py +0 -0
  244. {chython-3.5 → chython-3.7}/chython/core/test/gen_pach3_corpus.py +0 -0
  245. {chython-3.5 → chython-3.7}/chython/core/test/gen_v3_fixtures.py +0 -0
  246. {chython-3.5 → chython-3.7}/chython/core/test/gen_v4_fixtures.py +0 -0
  247. {chython-3.5 → chython-3.7}/chython/core/test/modeling_view_corpus.json.gz +0 -0
  248. {chython-3.5 → chython-3.7}/chython/core/test/modeling_view_corpus.py +0 -0
  249. {chython-3.5 → chython-3.7}/chython/core/test/pach3_corpus.py +0 -0
  250. {chython-3.5 → chython-3.7}/chython/core/test/pach_bond_group_corpus.bin.gz +0 -0
  251. {chython-3.5 → chython-3.7}/chython/core/test/pach_corpus.py +0 -0
  252. {chython-3.5 → chython-3.7}/chython/core/test/pach_v0_corpus.bin.gz +0 -0
  253. {chython-3.5 → chython-3.7}/chython/core/test/pach_v0_native_corpus.bin.gz +0 -0
  254. {chython-3.5 → chython-3.7}/chython/core/test/pach_v2_corpus.bin.gz +0 -0
  255. {chython-3.5 → chython-3.7}/chython/core/test/pach_v3_corpus.bin.gz +0 -0
  256. {chython-3.5 → chython-3.7}/chython/core/test/pach_v4_corpus.bin.gz +0 -0
  257. {chython-3.5 → chython-3.7}/chython/core/test/peptides.py +0 -0
  258. {chython-3.5 → chython-3.7}/chython/core/test/reaction_pach_v2_corpus.bin.gz +0 -0
  259. {chython-3.5 → chython-3.7}/chython/core/test/test_apply_scratch_probe.py +0 -0
  260. {chython-3.5 → chython-3.7}/chython/core/test/test_arena_f60.py +0 -0
  261. {chython-3.5 → chython-3.7}/chython/core/test/test_arena_identity.py +0 -0
  262. {chython-3.5 → chython-3.7}/chython/core/test/test_arena_v3_compat.py +0 -0
  263. {chython-3.5 → chython-3.7}/chython/core/test/test_arena_v4_compat.py +0 -0
  264. {chython-3.5 → chython-3.7}/chython/core/test/test_aromatic_storage.py +0 -0
  265. {chython-3.5 → chython-3.7}/chython/core/test/test_atropisomer_axis.py +0 -0
  266. {chython-3.5 → chython-3.7}/chython/core/test/test_brace_bond_fields.py +0 -0
  267. {chython-3.5 → chython-3.7}/chython/core/test/test_bridgehead_realisability.py +0 -0
  268. {chython-3.5 → chython-3.7}/chython/core/test/test_canonical.py +0 -0
  269. {chython-3.5 → chython-3.7}/chython/core/test/test_canonical_groups.py +0 -0
  270. {chython-3.5 → chython-3.7}/chython/core/test/test_canonical_stereogenic.py +0 -0
  271. {chython-3.5 → chython-3.7}/chython/core/test/test_canonicalize_stereo_groups.py +0 -0
  272. {chython-3.5 → chython-3.7}/chython/core/test/test_cip_assign.py +0 -0
  273. {chython-3.5 → chython-3.7}/chython/core/test/test_cip_budget.py +0 -0
  274. {chython-3.5 → chython-3.7}/chython/core/test/test_cip_cases.py +0 -0
  275. {chython-3.5 → chython-3.7}/chython/core/test/test_cip_digraph.py +0 -0
  276. {chython-3.5 → chython-3.7}/chython/core/test/test_cip_ranking.py +0 -0
  277. {chython-3.5 → chython-3.7}/chython/core/test/test_cip_storage.py +0 -0
  278. {chython-3.5 → chython-3.7}/chython/core/test/test_clean_stereo.py +0 -0
  279. {chython-3.5 → chython-3.7}/chython/core/test/test_conformers.py +0 -0
  280. {chython-3.5 → chython-3.7}/chython/core/test/test_container_log.py +0 -0
  281. {chython-3.5 → chython-3.7}/chython/core/test/test_copy_caches.py +0 -0
  282. {chython-3.5 → chython-3.7}/chython/core/test/test_cx_wedges.py +0 -0
  283. {chython-3.5 → chython-3.7}/chython/core/test/test_derive.py +0 -0
  284. {chython-3.5 → chython-3.7}/chython/core/test/test_descriptors.py +0 -0
  285. {chython-3.5 → chython-3.7}/chython/core/test/test_facade.py +0 -0
  286. {chython-3.5 → chython-3.7}/chython/core/test/test_featurizer_injection.py +0 -0
  287. {chython-3.5 → chython-3.7}/chython/core/test/test_fingerprints.py +0 -0
  288. {chython-3.5 → chython-3.7}/chython/core/test/test_geometry.py +0 -0
  289. {chython-3.5 → chython-3.7}/chython/core/test/test_h_unknown.py +0 -0
  290. {chython-3.5 → chython-3.7}/chython/core/test/test_helical_units.py +0 -0
  291. {chython-3.5 → chython-3.7}/chython/core/test/test_hydrogens.py +0 -0
  292. {chython-3.5 → chython-3.7}/chython/core/test/test_identity_memo.py +0 -0
  293. {chython-3.5 → chython-3.7}/chython/core/test/test_inchi.py +0 -0
  294. {chython-3.5 → chython-3.7}/chython/core/test/test_interop_injection.py +0 -0
  295. {chython-3.5 → chython-3.7}/chython/core/test/test_isomorphism.py +0 -0
  296. {chython-3.5 → chython-3.7}/chython/core/test/test_kekule.py +0 -0
  297. {chython-3.5 → chython-3.7}/chython/core/test/test_log.py +0 -0
  298. {chython-3.5 → chython-3.7}/chython/core/test/test_meta.py +0 -0
  299. {chython-3.5 → chython-3.7}/chython/core/test/test_ml_encoding.py +0 -0
  300. {chython-3.5 → chython-3.7}/chython/core/test/test_ml_reaction_transition.py +0 -0
  301. {chython-3.5 → chython-3.7}/chython/core/test/test_ml_state_view.py +0 -0
  302. {chython-3.5 → chython-3.7}/chython/core/test/test_ml_transition_view.py +0 -0
  303. {chython-3.5 → chython-3.7}/chython/core/test/test_ml_unpack_differential.py +0 -0
  304. {chython-3.5 → chython-3.7}/chython/core/test/test_modeling_view_frozen.py +0 -0
  305. {chython-3.5 → chython-3.7}/chython/core/test/test_molecule.py +0 -0
  306. {chython-3.5 → chython-3.7}/chython/core/test/test_morgan.py +0 -0
  307. {chython-3.5 → chython-3.7}/chython/core/test/test_pach.py +0 -0
  308. {chython-3.5 → chython-3.7}/chython/core/test/test_pach3.py +0 -0
  309. {chython-3.5 → chython-3.7}/chython/core/test/test_pack.py +0 -0
  310. {chython-3.5 → chython-3.7}/chython/core/test/test_planar_units.py +0 -0
  311. {chython-3.5 → chython-3.7}/chython/core/test/test_query.py +0 -0
  312. {chython-3.5 → chython-3.7}/chython/core/test/test_r_edit.py +0 -0
  313. {chython-3.5 → chython-3.7}/chython/core/test/test_r_semantics.py +0 -0
  314. {chython-3.5 → chython-3.7}/chython/core/test/test_r_serialisation.py +0 -0
  315. {chython-3.5 → chython-3.7}/chython/core/test/test_r_smirks.py +0 -0
  316. {chython-3.5 → chython-3.7}/chython/core/test/test_r_storage.py +0 -0
  317. {chython-3.5 → chython-3.7}/chython/core/test/test_reaction_identity.py +0 -0
  318. {chython-3.5 → chython-3.7}/chython/core/test/test_rings.py +0 -0
  319. {chython-3.5 → chython-3.7}/chython/core/test/test_rings_c60.py +0 -0
  320. {chython-3.5 → chython-3.7}/chython/core/test/test_set_element.py +0 -0
  321. {chython-3.5 → chython-3.7}/chython/core/test/test_sgroups.py +0 -0
  322. {chython-3.5 → chython-3.7}/chython/core/test/test_smiles_r.py +0 -0
  323. {chython-3.5 → chython-3.7}/chython/core/test/test_smiles_read.py +0 -0
  324. {chython-3.5 → chython-3.7}/chython/core/test/test_smiles_stereo_marks.py +0 -0
  325. {chython-3.5 → chython-3.7}/chython/core/test/test_smiles_write.py +0 -0
  326. {chython-3.5 → chython-3.7}/chython/core/test/test_smiles_write_aromatic.py +0 -0
  327. {chython-3.5 → chython-3.7}/chython/core/test/test_smiles_write_cis_trans.py +0 -0
  328. {chython-3.5 → chython-3.7}/chython/core/test/test_smiles_write_detached.py +0 -0
  329. {chython-3.5 → chython-3.7}/chython/core/test/test_smiles_write_h_unknown.py +0 -0
  330. {chython-3.5 → chython-3.7}/chython/core/test/test_smiles_write_sticky.py +0 -0
  331. {chython-3.5 → chython-3.7}/chython/core/test/test_smirks_patch.py +0 -0
  332. {chython-3.5 → chython-3.7}/chython/core/test/test_smirks_read.py +0 -0
  333. {chython-3.5 → chython-3.7}/chython/core/test/test_smirks_report.py +0 -0
  334. {chython-3.5 → chython-3.7}/chython/core/test/test_smirks_stereo.py +0 -0
  335. {chython-3.5 → chython-3.7}/chython/core/test/test_stereo_acceptance.py +0 -0
  336. {chython-3.5 → chython-3.7}/chython/core/test/test_stereo_anchor_identity.py +0 -0
  337. {chython-3.5 → chython-3.7}/chython/core/test/test_stereo_group_meaning.py +0 -0
  338. {chython-3.5 → chython-3.7}/chython/core/test/test_stereo_group_signs.py +0 -0
  339. {chython-3.5 → chython-3.7}/chython/core/test/test_stereo_group_storage.py +0 -0
  340. {chython-3.5 → chython-3.7}/chython/core/test/test_stereo_liveness.py +0 -0
  341. {chython-3.5 → chython-3.7}/chython/core/test/test_stereo_owners.py +0 -0
  342. {chython-3.5 → chython-3.7}/chython/core/test/test_stereo_parity.py +0 -0
  343. {chython-3.5 → chython-3.7}/chython/core/test/test_stereo_perception.py +0 -0
  344. {chython-3.5 → chython-3.7}/chython/core/test/test_stereo_query.py +0 -0
  345. {chython-3.5 → chython-3.7}/chython/core/test/test_stereo_units.py +0 -0
  346. {chython-3.5 → chython-3.7}/chython/core/test/test_stereogenicity_symmetry.py +0 -0
  347. {chython-3.5 → chython-3.7}/chython/core/test/test_structure.py +0 -0
  348. {chython-3.5 → chython-3.7}/chython/core/test/test_thiele_atom_order.py +0 -0
  349. {chython-3.5 → chython-3.7}/chython/core/test/test_title.py +0 -0
  350. {chython-3.5 → chython-3.7}/chython/core/test/test_union_stereo.py +0 -0
  351. {chython-3.5 → chython-3.7}/chython/core/test/v3_fixtures.py +0 -0
  352. {chython-3.5 → chython-3.7}/chython/core/test/v4_fixtures.py +0 -0
  353. {chython-3.5 → chython-3.7}/chython/depict/_hooks.py +0 -0
  354. {chython-3.5 → chython-3.7}/chython/depict/colorbar.py +0 -0
  355. {chython-3.5 → chython-3.7}/chython/depict/colormap.py +0 -0
  356. {chython-3.5 → chython-3.7}/chython/depict/field.py +0 -0
  357. {chython-3.5 → chython-3.7}/chython/depict/label.py +0 -0
  358. {chython-3.5 → chython-3.7}/chython/depict/layout/__init__.py +0 -0
  359. {chython-3.5 → chython-3.7}/chython/depict/layout/approved.py +0 -0
  360. {chython-3.5 → chython-3.7}/chython/depict/layout/clean2d.js +0 -0
  361. {chython-3.5 → chython-3.7}/chython/depict/layout/edits.py +0 -0
  362. {chython-3.5 → chython-3.7}/chython/depict/layout/env.py +0 -0
  363. {chython-3.5 → chython-3.7}/chython/depict/layout/features.py +0 -0
  364. {chython-3.5 → chython-3.7}/chython/depict/layout/greedy.py +0 -0
  365. {chython-3.5 → chython-3.7}/chython/depict/layout/lattice.py +0 -0
  366. {chython-3.5 → chython-3.7}/chython/depict/layout/learn/__init__.py +0 -0
  367. {chython-3.5 → chython-3.7}/chython/depict/layout/learn/alphazero.py +0 -0
  368. {chython-3.5 → chython-3.7}/chython/depict/layout/learn/demos.py +0 -0
  369. {chython-3.5 → chython-3.7}/chython/depict/layout/learn/evaluate.py +0 -0
  370. {chython-3.5 → chython-3.7}/chython/depict/layout/learn/judge.py +0 -0
  371. {chython-3.5 → chython-3.7}/chython/depict/layout/learn/mcts.py +0 -0
  372. {chython-3.5 → chython-3.7}/chython/depict/layout/learn/policy.py +0 -0
  373. {chython-3.5 → chython-3.7}/chython/depict/layout/learn/replay.py +0 -0
  374. {chython-3.5 → chython-3.7}/chython/depict/layout/learn/sweep.py +0 -0
  375. {chython-3.5 → chython-3.7}/chython/depict/layout/learn/targets.py +0 -0
  376. {chython-3.5 → chython-3.7}/chython/depict/layout/learn/tensors.py +0 -0
  377. {chython-3.5 → chython-3.7}/chython/depict/layout/learn/train.py +0 -0
  378. {chython-3.5 → chython-3.7}/chython/depict/layout/pose.py +0 -0
  379. {chython-3.5 → chython-3.7}/chython/depict/layout/quality.py +0 -0
  380. {chython-3.5 → chython-3.7}/chython/depict/layout/rings.py +0 -0
  381. {chython-3.5 → chython-3.7}/chython/depict/layout/search.py +0 -0
  382. {chython-3.5 → chython-3.7}/chython/depict/layout/templates.py +0 -0
  383. {chython-3.5 → chython-3.7}/chython/depict/layout/tree.py +0 -0
  384. {chython-3.5 → chython-3.7}/chython/depict/metrics/__init__.py +0 -0
  385. {chython-3.5 → chython-3.7}/chython/depict/metrics/helvetica.tsv +0 -0
  386. {chython-3.5 → chython-3.7}/chython/depict/metrics/times.tsv +0 -0
  387. {chython-3.5 → chython-3.7}/chython/depict/overlay.py +0 -0
  388. {chython-3.5 → chython-3.7}/chython/depict/render/__init__.py +0 -0
  389. {chython-3.5 → chython-3.7}/chython/depict/render/svg.py +0 -0
  390. {chython-3.5 → chython-3.7}/chython/depict/scene.py +0 -0
  391. {chython-3.5 → chython-3.7}/chython/depict/style.py +0 -0
  392. {chython-3.5 → chython-3.7}/chython/depict/test/__init__.py +0 -0
  393. {chython-3.5 → chython-3.7}/chython/depict/test/learn/__init__.py +0 -0
  394. {chython-3.5 → chython-3.7}/chython/depict/test/learn/test_alphazero.py +0 -0
  395. {chython-3.5 → chython-3.7}/chython/depict/test/learn/test_demos.py +0 -0
  396. {chython-3.5 → chython-3.7}/chython/depict/test/learn/test_judge.py +0 -0
  397. {chython-3.5 → chython-3.7}/chython/depict/test/learn/test_mcts.py +0 -0
  398. {chython-3.5 → chython-3.7}/chython/depict/test/learn/test_policy.py +0 -0
  399. {chython-3.5 → chython-3.7}/chython/depict/test/learn/test_replay.py +0 -0
  400. {chython-3.5 → chython-3.7}/chython/depict/test/learn/test_targets.py +0 -0
  401. {chython-3.5 → chython-3.7}/chython/depict/test/learn/test_train.py +0 -0
  402. {chython-3.5 → chython-3.7}/chython/depict/test/test_bonds.py +0 -0
  403. {chython-3.5 → chython-3.7}/chython/depict/test/test_colorbar.py +0 -0
  404. {chython-3.5 → chython-3.7}/chython/depict/test/test_colormap.py +0 -0
  405. {chython-3.5 → chython-3.7}/chython/depict/test/test_field.py +0 -0
  406. {chython-3.5 → chython-3.7}/chython/depict/test/test_figure.py +0 -0
  407. {chython-3.5 → chython-3.7}/chython/depict/test/test_label.py +0 -0
  408. {chython-3.5 → chython-3.7}/chython/depict/test/test_layout_controller.py +0 -0
  409. {chython-3.5 → chython-3.7}/chython/depict/test/test_layout_engine.py +0 -0
  410. {chython-3.5 → chython-3.7}/chython/depict/test/test_layout_relax.py +0 -0
  411. {chython-3.5 → chython-3.7}/chython/depict/test/test_metrics.py +0 -0
  412. {chython-3.5 → chython-3.7}/chython/depict/test/test_overlay.py +0 -0
  413. {chython-3.5 → chython-3.7}/chython/depict/test/test_package.py +0 -0
  414. {chython-3.5 → chython-3.7}/chython/depict/test/test_quality.py +0 -0
  415. {chython-3.5 → chython-3.7}/chython/depict/test/test_r_atom.py +0 -0
  416. {chython-3.5 → chython-3.7}/chython/depict/test/test_review.py +0 -0
  417. {chython-3.5 → chython-3.7}/chython/depict/test/test_scene.py +0 -0
  418. {chython-3.5 → chython-3.7}/chython/depict/test/test_scorecard.py +0 -0
  419. {chython-3.5 → chython-3.7}/chython/depict/test/test_style.py +0 -0
  420. {chython-3.5 → chython-3.7}/chython/depict/test/test_svg.py +0 -0
  421. {chython-3.5 → chython-3.7}/chython/depict/test/test_wedge_draw.py +0 -0
  422. {chython-3.5 → chython-3.7}/chython/depict/test/test_x3dom.py +0 -0
  423. {chython-3.5 → chython-3.7}/chython/depict/x3dom.py +0 -0
  424. {chython-3.5 → chython-3.7}/chython/exceptions.py +0 -0
  425. {chython-3.5 → chython-3.7}/chython/formats/__init__.py +0 -0
  426. {chython-3.5 → chython-3.7}/chython/formats/_text.py +0 -0
  427. {chython-3.5 → chython-3.7}/chython/formats/ctfile/CTFILE.md +0 -0
  428. {chython-3.5 → chython-3.7}/chython/formats/ctfile/__init__.py +0 -0
  429. {chython-3.5 → chython-3.7}/chython/formats/ctfile/_ctab.py +0 -0
  430. {chython-3.5 → chython-3.7}/chython/formats/ctfile/_errors.py +0 -0
  431. {chython-3.5 → chython-3.7}/chython/formats/ctfile/_facade.py +0 -0
  432. {chython-3.5 → chython-3.7}/chython/formats/ctfile/_hydrogens.py +0 -0
  433. {chython-3.5 → chython-3.7}/chython/formats/ctfile/_rdf.py +0 -0
  434. {chython-3.5 → chython-3.7}/chython/formats/ctfile/_rxn.py +0 -0
  435. {chython-3.5 → chython-3.7}/chython/formats/ctfile/_sdf.py +0 -0
  436. {chython-3.5 → chython-3.7}/chython/formats/ctfile/_sgroup.py +0 -0
  437. {chython-3.5 → chython-3.7}/chython/formats/ctfile/_stream.py +0 -0
  438. {chython-3.5 → chython-3.7}/chython/formats/ctfile/_tokens.py +0 -0
  439. {chython-3.5 → chython-3.7}/chython/formats/ctfile/_v2000.py +0 -0
  440. {chython-3.5 → chython-3.7}/chython/formats/ctfile/_v3000.py +0 -0
  441. {chython-3.5 → chython-3.7}/chython/formats/ctfile/test/__init__.py +0 -0
  442. {chython-3.5 → chython-3.7}/chython/formats/ctfile/test/test_aromatic.py +0 -0
  443. {chython-3.5 → chython-3.7}/chython/formats/ctfile/test/test_container_log.py +0 -0
  444. {chython-3.5 → chython-3.7}/chython/formats/ctfile/test/test_data_labels.py +0 -0
  445. {chython-3.5 → chython-3.7}/chython/formats/ctfile/test/test_facade.py +0 -0
  446. {chython-3.5 → chython-3.7}/chython/formats/ctfile/test/test_r_atom.py +0 -0
  447. {chython-3.5 → chython-3.7}/chython/formats/ctfile/test/test_rxn.py +0 -0
  448. {chython-3.5 → chython-3.7}/chython/formats/ctfile/test/test_sdf.py +0 -0
  449. {chython-3.5 → chython-3.7}/chython/formats/ctfile/test/test_sgroup.py +0 -0
  450. {chython-3.5 → chython-3.7}/chython/formats/ctfile/test/test_stereo_drawings.py +0 -0
  451. {chython-3.5 → chython-3.7}/chython/formats/ctfile/test/test_stereo_label.py +0 -0
  452. {chython-3.5 → chython-3.7}/chython/formats/ctfile/test/test_stream.py +0 -0
  453. {chython-3.5 → chython-3.7}/chython/formats/ctfile/test/test_tokens.py +0 -0
  454. {chython-3.5 → chython-3.7}/chython/formats/mol2.py +0 -0
  455. {chython-3.5 → chython-3.7}/chython/formats/pdb/__init__.py +0 -0
  456. {chython-3.5 → chython-3.7}/chython/formats/pdb/_builder.py +0 -0
  457. {chython-3.5 → chython-3.7}/chython/formats/pdb/_legacy.py +0 -0
  458. {chython-3.5 → chython-3.7}/chython/formats/pdb/_mmcif.py +0 -0
  459. {chython-3.5 → chython-3.7}/chython/formats/pdb/_records.py +0 -0
  460. {chython-3.5 → chython-3.7}/chython/formats/pdb/_star.py +0 -0
  461. {chython-3.5 → chython-3.7}/chython/formats/test/__init__.py +0 -0
  462. {chython-3.5 → chython-3.7}/chython/formats/test/conftest.py +0 -0
  463. {chython-3.5 → chython-3.7}/chython/formats/test/test_conformance.py +0 -0
  464. {chython-3.5 → chython-3.7}/chython/formats/test/test_done_when.py +0 -0
  465. {chython-3.5 → chython-3.7}/chython/formats/test/test_isolation.py +0 -0
  466. {chython-3.5 → chython-3.7}/chython/formats/test/test_log_prefix.py +0 -0
  467. {chython-3.5 → chython-3.7}/chython/formats/test/test_mmcif.py +0 -0
  468. {chython-3.5 → chython-3.7}/chython/formats/test/test_mol2.py +0 -0
  469. {chython-3.5 → chython-3.7}/chython/formats/test/test_no_review_bookkeeping.py +0 -0
  470. {chython-3.5 → chython-3.7}/chython/formats/test/test_pdb.py +0 -0
  471. {chython-3.5 → chython-3.7}/chython/formats/test/test_pdb_builder.py +0 -0
  472. {chython-3.5 → chython-3.7}/chython/formats/test/test_perceive_agreement.py +0 -0
  473. {chython-3.5 → chython-3.7}/chython/formats/test/test_read_only_facades.py +0 -0
  474. {chython-3.5 → chython-3.7}/chython/formats/test/test_xyz.py +0 -0
  475. {chython-3.5 → chython-3.7}/chython/formats/test/test_xyz_builder.py +0 -0
  476. {chython-3.5 → chython-3.7}/chython/formats/xml/__init__.py +0 -0
  477. {chython-3.5 → chython-3.7}/chython/formats/xml/_cml.py +0 -0
  478. {chython-3.5 → chython-3.7}/chython/formats/xml/_dialect.py +0 -0
  479. {chython-3.5 → chython-3.7}/chython/formats/xml/_errors.py +0 -0
  480. {chython-3.5 → chython-3.7}/chython/formats/xml/_facade.py +0 -0
  481. {chython-3.5 → chython-3.7}/chython/formats/xml/_mrv.py +0 -0
  482. {chython-3.5 → chython-3.7}/chython/formats/xml/_tree.py +0 -0
  483. {chython-3.5 → chython-3.7}/chython/formats/xml/test/__init__.py +0 -0
  484. {chython-3.5 → chython-3.7}/chython/formats/xml/test/conftest.py +0 -0
  485. {chython-3.5 → chython-3.7}/chython/formats/xml/test/test_cml.py +0 -0
  486. {chython-3.5 → chython-3.7}/chython/formats/xml/test/test_container_log.py +0 -0
  487. {chython-3.5 → chython-3.7}/chython/formats/xml/test/test_dead_stereo_groups.py +0 -0
  488. {chython-3.5 → chython-3.7}/chython/formats/xml/test/test_dialect.py +0 -0
  489. {chython-3.5 → chython-3.7}/chython/formats/xml/test/test_equivalence.py +0 -0
  490. {chython-3.5 → chython-3.7}/chython/formats/xml/test/test_facade.py +0 -0
  491. {chython-3.5 → chython-3.7}/chython/formats/xml/test/test_mrv.py +0 -0
  492. {chython-3.5 → chython-3.7}/chython/formats/xml/test/test_mrv_census.py +0 -0
  493. {chython-3.5 → chython-3.7}/chython/formats/xml/test/test_tree.py +0 -0
  494. {chython-3.5 → chython-3.7}/chython/formats/xyz.py +0 -0
  495. {chython-3.5 → chython-3.7}/chython/interop/__init__.py +0 -0
  496. {chython-3.5 → chython-3.7}/chython/interop/_cdk.py +0 -0
  497. {chython-3.5 → chython-3.7}/chython/interop/_cdpkit.py +0 -0
  498. {chython-3.5 → chython-3.7}/chython/interop/_indigo.py +0 -0
  499. {chython-3.5 → chython-3.7}/chython/interop/_iupac.py +0 -0
  500. {chython-3.5 → chython-3.7}/chython/interop/_java.py +0 -0
  501. {chython-3.5 → chython-3.7}/chython/interop/_openbabel.py +0 -0
  502. {chython-3.5 → chython-3.7}/chython/interop/_pandas.py +0 -0
  503. {chython-3.5 → chython-3.7}/chython/interop/_rdkit.py +0 -0
  504. {chython-3.5 → chython-3.7}/chython/interop/_records.py +0 -0
  505. {chython-3.5 → chython-3.7}/chython/interop/_stereo.py +0 -0
  506. {chython-3.5 → chython-3.7}/chython/interop/config.py +0 -0
  507. {chython-3.5 → chython-3.7}/chython/interop/conformers.py +0 -0
  508. {chython-3.5 → chython-3.7}/chython/interop/test/__init__.py +0 -0
  509. {chython-3.5 → chython-3.7}/chython/interop/test/conftest.py +0 -0
  510. {chython-3.5 → chython-3.7}/chython/interop/test/test_cdk.py +0 -0
  511. {chython-3.5 → chython-3.7}/chython/interop/test/test_cdpkit.py +0 -0
  512. {chython-3.5 → chython-3.7}/chython/interop/test/test_config.py +0 -0
  513. {chython-3.5 → chython-3.7}/chython/interop/test/test_conformers.py +0 -0
  514. {chython-3.5 → chython-3.7}/chython/interop/test/test_coordinate_honesty.py +0 -0
  515. {chython-3.5 → chython-3.7}/chython/interop/test/test_dispatch.py +0 -0
  516. {chython-3.5 → chython-3.7}/chython/interop/test/test_indigo.py +0 -0
  517. {chython-3.5 → chython-3.7}/chython/interop/test/test_iupac.py +0 -0
  518. {chython-3.5 → chython-3.7}/chython/interop/test/test_log_delivery.py +0 -0
  519. {chython-3.5 → chython-3.7}/chython/interop/test/test_openbabel.py +0 -0
  520. {chython-3.5 → chython-3.7}/chython/interop/test/test_pandas.py +0 -0
  521. {chython-3.5 → chython-3.7}/chython/interop/test/test_rdkit.py +0 -0
  522. {chython-3.5 → chython-3.7}/chython/interop/test/test_stereo.py +0 -0
  523. {chython-3.5 → chython-3.7}/chython/reactions/__init__.py +0 -0
  524. {chython-3.5 → chython-3.7}/chython/reactions/_numbering.py +0 -0
  525. {chython-3.5 → chython-3.7}/chython/reactions/_stickers.py +0 -0
  526. {chython-3.5 → chython-3.7}/chython/reactions/_tables.py +0 -0
  527. {chython-3.5 → chython-3.7}/chython/reactions/attention/__init__.py +0 -0
  528. {chython-3.5 → chython-3.7}/chython/reactions/attention/_assign.py +0 -0
  529. {chython-3.5 → chython-3.7}/chython/reactions/attention/_encode.py +0 -0
  530. {chython-3.5 → chython-3.7}/chython/reactions/attention/_session.py +0 -0
  531. {chython-3.5 → chython-3.7}/chython/reactions/test/__init__.py +0 -0
  532. {chython-3.5 → chython-3.7}/chython/reactions/test/golden_subset.smi +0 -0
  533. {chython-3.5 → chython-3.7}/chython/reactions/test/test_attention.py +0 -0
  534. {chython-3.5 → chython-3.7}/chython/reactions/test/test_attention_assign.py +0 -0
  535. {chython-3.5 → chython-3.7}/chython/reactions/test/test_attention_encode.py +0 -0
  536. {chython-3.5 → chython-3.7}/chython/reactions/test/test_attention_isolation.py +0 -0
  537. {chython-3.5 → chython-3.7}/chython/reactions/test/test_dependency_direction.py +0 -0
  538. {chython-3.5 → chython-3.7}/chython/reactions/test/test_enumerate.py +0 -0
  539. {chython-3.5 → chython-3.7}/chython/reactions/test/test_id_stability.py +0 -0
  540. {chython-3.5 → chython-3.7}/chython/reactions/test/test_numbering.py +0 -0
  541. {chython-3.5 → chython-3.7}/chython/reactions/test/test_probes.py +0 -0
  542. {chython-3.5 → chython-3.7}/chython/reactions/test/test_retro.py +0 -0
  543. {chython-3.5 → chython-3.7}/chython/reactions/test/test_retro_probes.py +0 -0
  544. {chython-3.5 → chython-3.7}/chython/reactions/test/test_retro_tables.py +0 -0
  545. {chython-3.5 → chython-3.7}/chython/reactions/test/test_stickers.py +0 -0
  546. {chython-3.5 → chython-3.7}/chython/reactions/test/test_tables.py +0 -0
  547. {chython-3.5 → chython-3.7}/chython/test/__init__.py +0 -0
  548. {chython-3.5 → chython-3.7}/chython/test/test_code_hygiene.py +0 -0
  549. {chython-3.5 → chython-3.7}/chython/test/test_container_methods.py +0 -0
  550. {chython-3.5 → chython-3.7}/chython/test/test_doc_figures.py +0 -0
  551. {chython-3.5 → chython-3.7}/chython/test/test_doc_references.py +0 -0
  552. {chython-3.5 → chython-3.7}/chython/test/test_doc_samples.py +0 -0
  553. {chython-3.5 → chython-3.7}/chython/test/test_hydrogen_parity.py +0 -0
  554. {chython-3.5 → chython-3.7}/chython/test/test_libinchi_staging.py +0 -0
  555. {chython-3.5 → chython-3.7}/chython/test/test_log_records.py +0 -0
  556. {chython-3.5 → chython-3.7}/chython/test/test_packaging.py +0 -0
  557. {chython-3.5 → chython-3.7}/chython/test/test_performance.py +0 -0
  558. {chython-3.5 → chython-3.7}/chython/test/test_r_atom_integration.py +0 -0
  559. {chython-3.5 → chython-3.7}/chython/test/test_release_build.py +0 -0
  560. {chython-3.5 → chython-3.7}/chython/test/test_writer_posture.py +0 -0
  561. {chython-3.5 → chython-3.7}/chython.egg-info/dependency_links.txt +0 -0
  562. {chython-3.5 → chython-3.7}/chython.egg-info/top_level.txt +0 -0
  563. {chython-3.5 → chython-3.7}/setup.cfg +0 -0
  564. {chython-3.5 → chython-3.7}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chython
3
- Version: 3.5
3
+ Version: 3.7
4
4
  Summary: Library for processing molecules and reactions in python way
5
5
  Author-email: Ramil Nugmanov <nougmanoff@protonmail.com>
6
6
  License-Expression: LGPL-3.0-or-later
@@ -34,6 +34,8 @@ Requires-Dist: onnxruntime>=1.16; extra == "mapping"
34
34
  Requires-Dist: chython-rxnmap>=2.0; extra == "mapping"
35
35
  Provides-Extra: rdkit
36
36
  Requires-Dist: rdkit>=2025.9; extra == "rdkit"
37
+ Provides-Extra: v8
38
+ Requires-Dist: mini-racer>=0.12; extra == "v8"
37
39
  Provides-Extra: extra-clean2d
38
40
  Requires-Dist: jpype1>=1.6.0; extra == "extra-clean2d"
39
41
  Requires-Dist: openbabel-wheel>=3.1.1.22; extra == "extra-clean2d"
@@ -20,17 +20,19 @@
20
20
  #
21
21
  """chython's public surface: a facade re-exporting the packages below it.
22
22
 
23
- `__all__` is empty by design. `smarts` is the short spelling of `read_smarts` and the same function
24
- object. `smiles` is bidirectional: a string in reads -- a `>` that is not a dative `->` makes it a
25
- reaction SMILES and the result a `ReactionContainer` -- and a container in writes one. `pach` is the
26
- same door for the wire format, and `unpach`/`unpack` its import half under chython 2's two names.
23
+ `__all__` is empty by design; `__version__` is the installed distribution's. `smarts` is the short
24
+ spelling of `read_smarts` and the same function object. `smiles` is bidirectional: a string in reads -- a
25
+ `>` that is not a dative `->` makes it a reaction SMILES and the result a `ReactionContainer` -- and a
26
+ container in writes one. `pach` is the same door for the wire format, and `unpach`/`unpack` its import
27
+ half under chython 2's two names.
27
28
  """
29
+ from importlib.metadata import PackageNotFoundError as _NotInstalled, version as _version
28
30
  from sys import modules as _modules
29
31
  from types import ModuleType as _ModuleType
30
32
  from .core import *
31
33
  from .core import read_smarts as smarts
32
- from .depict import (Clean2DEngine, DepictStyle, get_chain_layout, get_clean2d_engine, get_depict_style,
33
- get_peptide_layout, set_chain_layout, set_clean2d_engine, set_depict_style, set_peptide_layout)
34
+ from .depict import (Clean2DEngine, DepictStyle, JSRuntime, get_chain_layout, get_clean2d_engine, get_depict_style,
35
+ get_js_runtime, set_chain_layout, set_clean2d_engine, set_depict_style, set_js_runtime)
34
36
  from .formats import *
35
37
  # By full path, not through `formats`' star: `pdb` is that subpackage's name too and the function
36
38
  # would shadow it.
@@ -45,8 +47,8 @@ from .interop.config import _facade_alias as _interop_facade_alias
45
47
 
46
48
 
47
49
  class _Facade(_ModuleType):
48
- """Gives `chython` itself properties, so `chython.clean2d_engine` and `chython.chain_layout` (alias
49
- `chython.peptide_layout`) forward both the read and the write to their one home in `depict/_config.py`,
50
+ """Gives `chython` itself properties, so `chython.clean2d_engine`, `chython.js_runtime` and
51
+ `chython.chain_layout` forward both the read and the write to their one home in `depict/_config.py`,
50
52
  validated on the spot.
51
53
  """
52
54
  @property
@@ -66,16 +68,21 @@ class _Facade(_ModuleType):
66
68
  set_chain_layout(flag)
67
69
 
68
70
  @property
69
- def peptide_layout(self) -> bool:
70
- return get_peptide_layout()
71
+ def js_runtime(self) -> JSRuntime:
72
+ return get_js_runtime()
71
73
 
72
- @peptide_layout.setter
73
- def peptide_layout(self, flag: bool):
74
- set_peptide_layout(flag)
74
+ @js_runtime.setter
75
+ def js_runtime(self, runtime: JSRuntime):
76
+ set_js_runtime(runtime)
75
77
 
76
78
 
77
79
  _modules[__name__].__class__ = _Facade
78
80
 
81
+ try: # the installed distribution's version; None for a bare source tree
82
+ __version__ = _version('chython')
83
+ except _NotInstalled:
84
+ __version__ = None
85
+
79
86
  # `conformer_engine` and `class_paths` live in `chython.interop.config`; aliased here rather than
80
87
  # copied, or `chython.conformer_engine = 'cdpkit'` would be a silent no-op. Must run AFTER the
81
88
  # `__class__` assignment above: `_facade_alias` subclasses whatever class the module currently has, so
@@ -564,11 +564,12 @@ def _imine_handover(molecule: MoleculeContainer, lines: list) -> bool:
564
564
  ring path keeps a ring's hydrogen count and the amidine path stays out of a ring holding a C=C, so the
565
565
  hydrogen an exocyclic imine took from the ring is handed back here, and both paths then place the rest.
566
566
  The imine nitrogen bears carbon or hydrogen only -- an amidoxime keeps its oxime -- and the ring nitrogen
567
- is an `-NH-` of single bonds. Of two such nitrogens the canonical order picks one, the ring path
567
+ is an `-NH-` of single bonds, and gives its hydrogen once: of the two imines of 1,3-diiminoisoindoline
568
+ one takes it, the other stays an imine. Of two such nitrogens the canonical order picks one, the ring path
568
569
  deciding between them again when the system is one it places. A ring system with no C=C, a cyclic
569
570
  guanidine of a triazinane or creatinine, is the amidine path's and is not touched.
570
571
  """
571
- moves = []
572
+ moves, used = [], set() # a donor gives its hydrogen, and takes its C=N, once
572
573
  positions = None
573
574
  for atoms, _ in _ring_systems(molecule):
574
575
  if not _conjugated_carbon(molecule, atoms):
@@ -582,7 +583,8 @@ def _imine_handover(molecule: MoleculeContainer, lines: list) -> bool:
582
583
  and all(molecule.element_of(y) in (1, 6) for y in molecule.neighbors_of(x) if y != c)]
583
584
  if not imines:
584
585
  continue
585
- donors = [y for y in molecule.neighbors_of(c) if y in atoms and molecule.element_of(y) == 7
586
+ donors = [y for y in molecule.neighbors_of(c) if y in atoms and y not in used
587
+ and molecule.element_of(y) == 7
586
588
  and not molecule.charge_of(y) and not molecule.radical_of(y) and molecule.implicit_h_of(y)
587
589
  and all(molecule.order_of(y, z) == 1 for z in molecule.neighbors_of(y))]
588
590
  if not donors:
@@ -595,6 +597,7 @@ def _imine_handover(molecule: MoleculeContainer, lines: list) -> bool:
595
597
  positions = molecule.atoms_order
596
598
  donors.sort(key=positions.__getitem__)
597
599
  moves.append((c, imines[0], donors[0]))
600
+ used.add(donors[0])
598
601
  if not moves:
599
602
  return False
600
603
  counts = {n: molecule.implicit_h_of(n) for _, x, y in moves for n in (x, y)}
@@ -704,3 +704,15 @@ def test_an_amidine_c_n_with_a_choice_of_acceptor_carries_no_e_z():
704
704
  m = read_smiles(kept)
705
705
  standardize_isomers(m)
706
706
  assert '/' in str(m) or '\\' in str(m), kept
707
+
708
+
709
+ def test_two_exocyclic_imines_share_one_ring_hydrogen():
710
+ """1,3-Diiminoisoindoline: both imines sit beside one ring N-H, which gives its hydrogen once. One imine
711
+ takes it, the other stays: the neutral amino-imino form, the formula kept, the same molecule as that
712
+ tautomer written as such."""
713
+ molecule = read_smiles('c1ccc2C(NC(c2c1)=N)=N')
714
+ formula = molecule.brutto_formula
715
+ assert standardize_isomers(molecule)
716
+ assert molecule.brutto_formula == formula and not check_valence(molecule), str(molecule)
717
+ assert not any(molecule.charge_of(n) for n in molecule.atom_numbers)
718
+ assert converge('c1ccc2C(NC(c2c1)=N)=N', 'NC1=NC(=N)c2ccccc12')[2]
@@ -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 differential suite's own witness that a patch fires."""
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. chython 2 is
23
- the behaviour oracle; the two deliberate divergences, `z` and `[M]`'s charge, are asserted by name
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
- line, = ask(_SCRIPT, '[C;z3]\tC=C=C')
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
- """Does each ported rule fire on the same molecules as a pinned out-of-tree chython 2.24, and produce
20
- the same product? A disagreement is not automatically V3 being wrong: triage it and name the
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
- # Run inside the oracle interpreter. Deliberately tiny: everything it prints is data, since analysis
35
- # done there is analysis this repository cannot see or maintain.
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. No oracle needed: a self-consistency.
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 where chython 2
107
- does not, so a rule meaning "four single bonds, therefore a formal charge" can fire on an atom
108
- whose fourth bond the pass itself just made dative.
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. The hydrogen move chython 2 did inside `thiele` belongs to
23
- `standardize_isomers` instead. Both halves are pinned here.
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. chython 2's own
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 chython 2 made inside `thiele` is `standardize_isomers`' own: an azole N-H
101
- outranks an azine N-H, so the hydrogen goes to atom 5, not atom 1.
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`, measured against chython 2.24 rather than reviewed by eye.
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 ._oracle import ask, needs_oracle
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
- SYMBOLS = element_symbols()
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, oracle):
154
- """Negative control: an untranslated `z3` matches nothing, so the translation was necessary.
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
- @needs_oracle
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
- # CORRESPONDENCE WITH chython 2: `Element.implicit_hydrogens` returns `None` for exactly this
246
- # population, and that None is the oracle this sentinel reproduces. So `implicit_h_of` answers None
247
- # too, and `int(None)` raising in a caller's arithmetic is the point: a fabricated 0 would not raise,
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/test_no_chython_two_imports.py`); an exception carved out for one sibling is an
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
@@ -613,7 +613,7 @@ def _set_depict_fns(*, clean2d=None, layout2d=None, rescale2d=None, reaction_cle
613
613
  `mol.clean2d()` worked, and no caller could tell why. `chython.depict` calls this at its own import
614
614
  time.
615
615
 
616
- THE LAYOUT GROUP. The molecule pair takes `(molecule, *, engine=None, force=False, peptide=None)`;
616
+ THE LAYOUT GROUP. The molecule pair takes `(molecule, *, engine=None, force=False, chain=None)`;
617
617
  `clean2d` stores and returns None, `layout2d` returns `{n: (x, y)}` and stores nothing. `rescale2d`
618
618
  takes the molecule alone, rewrites the stored plane to average bond length 0.825 and answers whether
619
619
  it rescaled. The reaction pair takes the same keywords; `layout2d` returns `(planes, arrow, signs)`
@@ -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/test_no_chython_two_imports.py` holds the core to importing nothing from
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,
@@ -6454,6 +6454,13 @@ cdef class MoleculeContainer:
6454
6454
  if not unit['parity']:
6455
6455
  continue
6456
6456
  anchor = inverse[unit['anchor']]
6457
+ if anchor not in base_refs and isinstance(unit['owners'], tuple) and unit['anchor'] in unit['owners']:
6458
+ # a cis/trans unit, which either end of its bond may anchor: two records can pick opposite
6459
+ # ends. An allene's anchor is its midpoint, the same in both. The refs come across
6460
+ # unchanged -- a pair exchange is even, and `_parity_in_order` takes it.
6461
+ for x in unit['owners']:
6462
+ if x != unit['anchor'] and inverse[x] in base_refs:
6463
+ anchor = inverse[x]
6457
6464
  if anchor not in base_refs:
6458
6465
  self._log_event(
6459
6466
  'enrich:no-unit-here', 'enrich',
@@ -8079,21 +8086,21 @@ cdef class MoleculeContainer:
8079
8086
  """
8080
8087
  return _resonance_fn()(self)
8081
8088
 
8082
- def layout2d(self, *, engine=None, force=False, peptide=None):
8089
+ def layout2d(self, *, engine=None, force=False, chain=None):
8083
8090
  """Compute a 2D layout and RETURN it as `{n: (x, y)}`, storing nothing.
8084
8091
 
8085
8092
  THE FORM A RENDERER WANTS: drawing must not change what it draws, so a layout computed for a
8086
8093
  picture is handed back rather than stored. `clean2d()` is this plus the decision to keep it.
8087
8094
 
8088
8095
  `force=False` on a molecule that already `has_layout` hands back the STORED plane and computes
8089
- nothing; `force=True` always recomputes. `engine` overrides `chython.clean2d_engine` and `peptide`
8090
- overrides `chython.peptide_layout` for this one call.
8096
+ nothing; `force=True` always recomputes. `engine` overrides `chython.clean2d_engine` and `chain`
8097
+ overrides `chython.chain_layout` for this one call; only `engine='chython'` reads `chain`.
8091
8098
 
8092
8099
  Registered by `chython.depict`, not implemented here -- see `_depict_fn`.
8093
8100
  """
8094
- return _depict_fn(_layout2d_impl, 'layout2d')(self, engine=engine, force=force, peptide=peptide)
8101
+ return _depict_fn(_layout2d_impl, 'layout2d')(self, engine=engine, force=force, chain=chain)
8095
8102
 
8096
- def clean2d(self, *, engine=None, force=False, peptide=None):
8103
+ def clean2d(self, *, engine=None, force=False, chain=None):
8097
8104
  """Compute a 2D layout and STORE it on this molecule.
8098
8105
 
8099
8106
  NOT ALWAYS A RECOMPUTATION: a molecule that already carries a non-degenerate plane
@@ -8102,7 +8109,7 @@ cdef class MoleculeContainer:
8102
8109
 
8103
8110
  Registered by `chython.depict`, not implemented here -- see `_depict_fn`.
8104
8111
  """
8105
- return _depict_fn(_clean2d_impl, 'clean2d')(self, engine=engine, force=force, peptide=peptide)
8112
+ return _depict_fn(_clean2d_impl, 'clean2d')(self, engine=engine, force=force, chain=chain)
8106
8113
 
8107
8114
  def rescale2d(self):
8108
8115
  """Rescale the STORED coordinates to average bond length 0.825. Did it rescale?