molcraft 0.1.0a20__tar.gz → 0.1.0a21__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.

Potentially problematic release.


This version of molcraft might be problematic. Click here for more details.

Files changed (32) hide show
  1. {molcraft-0.1.0a20 → molcraft-0.1.0a21}/PKG-INFO +1 -1
  2. {molcraft-0.1.0a20 → molcraft-0.1.0a21}/molcraft/__init__.py +1 -1
  3. {molcraft-0.1.0a20 → molcraft-0.1.0a21}/molcraft/chem.py +6 -8
  4. {molcraft-0.1.0a20 → molcraft-0.1.0a21}/molcraft.egg-info/PKG-INFO +1 -1
  5. {molcraft-0.1.0a20 → molcraft-0.1.0a21}/LICENSE +0 -0
  6. {molcraft-0.1.0a20 → molcraft-0.1.0a21}/README.md +0 -0
  7. {molcraft-0.1.0a20 → molcraft-0.1.0a21}/molcraft/applications/__init__.py +0 -0
  8. {molcraft-0.1.0a20 → molcraft-0.1.0a21}/molcraft/applications/chromatography.py +0 -0
  9. {molcraft-0.1.0a20 → molcraft-0.1.0a21}/molcraft/applications/proteomics.py +0 -0
  10. {molcraft-0.1.0a20 → molcraft-0.1.0a21}/molcraft/callbacks.py +0 -0
  11. {molcraft-0.1.0a20 → molcraft-0.1.0a21}/molcraft/datasets.py +0 -0
  12. {molcraft-0.1.0a20 → molcraft-0.1.0a21}/molcraft/descriptors.py +0 -0
  13. {molcraft-0.1.0a20 → molcraft-0.1.0a21}/molcraft/features.py +0 -0
  14. {molcraft-0.1.0a20 → molcraft-0.1.0a21}/molcraft/featurizers.py +0 -0
  15. {molcraft-0.1.0a20 → molcraft-0.1.0a21}/molcraft/layers.py +0 -0
  16. {molcraft-0.1.0a20 → molcraft-0.1.0a21}/molcraft/losses.py +0 -0
  17. {molcraft-0.1.0a20 → molcraft-0.1.0a21}/molcraft/models.py +0 -0
  18. {molcraft-0.1.0a20 → molcraft-0.1.0a21}/molcraft/ops.py +0 -0
  19. {molcraft-0.1.0a20 → molcraft-0.1.0a21}/molcraft/records.py +0 -0
  20. {molcraft-0.1.0a20 → molcraft-0.1.0a21}/molcraft/tensors.py +0 -0
  21. {molcraft-0.1.0a20 → molcraft-0.1.0a21}/molcraft.egg-info/SOURCES.txt +0 -0
  22. {molcraft-0.1.0a20 → molcraft-0.1.0a21}/molcraft.egg-info/dependency_links.txt +0 -0
  23. {molcraft-0.1.0a20 → molcraft-0.1.0a21}/molcraft.egg-info/requires.txt +0 -0
  24. {molcraft-0.1.0a20 → molcraft-0.1.0a21}/molcraft.egg-info/top_level.txt +0 -0
  25. {molcraft-0.1.0a20 → molcraft-0.1.0a21}/pyproject.toml +0 -0
  26. {molcraft-0.1.0a20 → molcraft-0.1.0a21}/setup.cfg +0 -0
  27. {molcraft-0.1.0a20 → molcraft-0.1.0a21}/tests/test_chem.py +0 -0
  28. {molcraft-0.1.0a20 → molcraft-0.1.0a21}/tests/test_featurizers.py +0 -0
  29. {molcraft-0.1.0a20 → molcraft-0.1.0a21}/tests/test_layers.py +0 -0
  30. {molcraft-0.1.0a20 → molcraft-0.1.0a21}/tests/test_losses.py +0 -0
  31. {molcraft-0.1.0a20 → molcraft-0.1.0a21}/tests/test_models.py +0 -0
  32. {molcraft-0.1.0a20 → molcraft-0.1.0a21}/tests/test_tensors.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: molcraft
3
- Version: 0.1.0a20
3
+ Version: 0.1.0a21
4
4
  Summary: Graph Neural Networks for Molecular Machine Learning
5
5
  Author-email: Alexander Kensert <alexander.kensert@gmail.com>
6
6
  License: MIT License
@@ -1,4 +1,4 @@
1
- __version__ = '0.1.0a20'
1
+ __version__ = '0.1.0a21'
2
2
 
3
3
  import os
4
4
  os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3"
@@ -427,11 +427,9 @@ def embed_conformers(
427
427
  f'{num_conformers - num_successes} conformer(s) using different embedding methods.',
428
428
  stacklevel=2
429
429
  )
430
- max_attempts = (20 * mol.num_atoms) # increasing it from 10xN to 20xN
431
430
  for fallback_method in [method, 'ETDG', 'KDG']:
432
431
  fallback_embedding_method = available_embedding_methods[fallback_method]
433
432
  fallback_embedding_method.useRandomCoords = True
434
- fallback_embedding_method.maxAttempts = max_attempts
435
433
  fallback_embedding_method.clearConfs = False
436
434
  if random_seed is not None:
437
435
  fallback_embedding_method.randomSeed = random_seed
@@ -463,14 +461,14 @@ def optimize_conformers(
463
461
  f'Could not find `method` {method!r}. Specify either of: '
464
462
  '`UFF`, `MMFF`, `MMFF94` or `MMFF94s`.'
465
463
  )
466
- mol = Mol(mol)
464
+ mol_optimized = Mol(mol)
467
465
  try:
468
466
  if method.startswith('MMFF'):
469
467
  variant = method
470
468
  if variant == 'MMFF':
471
469
  variant += '94'
472
470
  _, _ = _mmff_optimize_conformers(
473
- mol,
471
+ mol_optimized,
474
472
  num_threads=num_threads,
475
473
  max_iter=max_iter,
476
474
  variant=variant,
@@ -478,7 +476,7 @@ def optimize_conformers(
478
476
  )
479
477
  else:
480
478
  _, _ = _uff_optimize_conformers(
481
- mol,
479
+ mol_optimized,
482
480
  num_threads=num_threads,
483
481
  max_iter=max_iter,
484
482
  vdw_threshold=vdw_threshold,
@@ -486,11 +484,11 @@ def optimize_conformers(
486
484
  )
487
485
  except RuntimeError as e:
488
486
  warnings.warn(
489
- f'{method} force field minimization raised {e}. '
490
- '\nProceeding without force field minimization.',
487
+ f'{method} force field minimization did not succeed. Proceeding without it.',
491
488
  stacklevel=2
492
489
  )
493
- return mol
490
+ return mol
491
+ return mol_optimized
494
492
 
495
493
  def prune_conformers(
496
494
  mol: Mol,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: molcraft
3
- Version: 0.1.0a20
3
+ Version: 0.1.0a21
4
4
  Summary: Graph Neural Networks for Molecular Machine Learning
5
5
  Author-email: Alexander Kensert <alexander.kensert@gmail.com>
6
6
  License: MIT License
File without changes
File without changes
File without changes
File without changes
File without changes