rdworks 0.40.2__py3-none-any.whl → 0.41.1__py3-none-any.whl

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.
rdworks/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = '0.40.2'
1
+ __version__ = '0.41.1'
2
2
 
3
3
  from rdworks.conf import Conf
4
4
  from rdworks.mol import Mol
rdworks/conf.py CHANGED
@@ -27,12 +27,17 @@ from rdworks.display import render_png, render_svg
27
27
  class Conf:
28
28
  """Container for 3D conformers."""
29
29
 
30
- def __init__(self, molecule: str | Chem.Mol | None = None, name: str='') -> None:
30
+ def __init__(self,
31
+ molecule: str | Chem.Mol | None = None,
32
+ name: str = '',
33
+ compressed: bool = False) -> None:
31
34
  """Initialize.
32
35
 
33
36
  Args:
34
37
  molecule (Chem.Mol | MolBlock string): Molecule for 3D conformer.
35
38
  name (str): Name prefix of the generated conformers. Defaults to ''.
39
+ compressed (bool): whether the MolBlock string is compressed or not.
40
+ Defaults to False.
36
41
 
37
42
  Raises:
38
43
  ValueError: if `molecule` is not rdkit.Chem.Mol object.
@@ -59,6 +64,8 @@ class Conf:
59
64
  return
60
65
 
61
66
  if isinstance(molecule, str): # 3-D MolBLock string
67
+ if compressed:
68
+ molecule = decompress_string(molecule)
62
69
  try:
63
70
  self.rdmol = Chem.MolFromMolBlock(molecule,
64
71
  sanitize=False,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rdworks
3
- Version: 0.40.2
3
+ Version: 0.41.1
4
4
  Summary: Routine tasks built on RDKit and other tools
5
5
  Author-email: Sung-Hun Bae <sunghun.bae@gmail.com>
6
6
  Maintainer-email: Sung-Hun Bae <sunghun.bae@gmail.com>
@@ -1,5 +1,5 @@
1
- rdworks/__init__.py,sha256=C-rebVhw25NuMe3T71a03rlj7CC6K9gaxU1VOhqIEfY,1368
2
- rdworks/conf.py,sha256=3qDEWq4cKnMd423Tx4jt88KIP11OLRG7Ab-w5755OZw,31031
1
+ rdworks/__init__.py,sha256=peU479Cq6wwRIRlgq5oXG-OkjglPAzoBFl2m0syn3jg,1368
2
+ rdworks/conf.py,sha256=y4fuAOSTOm8sMPxP6rKktKQY9b5SRJ5wjTshrwIyRrw,31318
3
3
  rdworks/descriptor.py,sha256=34T_dQ6g8v3u-ym8TLKbQtxIIV5TEo-d3pdedq3o-cg,2106
4
4
  rdworks/display.py,sha256=JR0gR26UpH-JCxVOaqXZCUj2MiGZSrx9Me87FncspVI,13469
5
5
  rdworks/ionized.py,sha256=5oIjMRpkX792RIpEEE2Ir96icfFaN_h21mSihhfQPAw,6713
@@ -66,8 +66,8 @@ rdworks/predefined/misc/reactive-part-3.xml,sha256=LgWHSEbRTVmgBoIO45xbTo1xQJs0X
66
66
  rdworks/predefined/misc/reactive.xml,sha256=syedoQ6VYUfRLnxy99ObuDniJ_a_WhrWAJbTKFfJ6VY,11248
67
67
  rdworks/xtb/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
68
68
  rdworks/xtb/wrapper.py,sha256=I0nW89vlJZ5Za5pCjIpjsEOFbTm7HpeNGiPgssheWn8,11350
69
- rdworks-0.40.2.dist-info/licenses/LICENSE,sha256=UOkJSBqYyQUvtCp7a-vdCANeEcLE2dnTie_eB1By5SY,1074
70
- rdworks-0.40.2.dist-info/METADATA,sha256=isXahzjh1NSTZQFuGPaUpRAI4Ef6dSEaXgHU56j-o7s,1967
71
- rdworks-0.40.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
72
- rdworks-0.40.2.dist-info/top_level.txt,sha256=05C98HbvBK2axUBogC_hAT_CdpOeQYGnQ6vRAgawr8s,8
73
- rdworks-0.40.2.dist-info/RECORD,,
69
+ rdworks-0.41.1.dist-info/licenses/LICENSE,sha256=UOkJSBqYyQUvtCp7a-vdCANeEcLE2dnTie_eB1By5SY,1074
70
+ rdworks-0.41.1.dist-info/METADATA,sha256=_t5_Rn30kucD0VBt08335lotOO7QtN0pyAwaJot7gac,1967
71
+ rdworks-0.41.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
72
+ rdworks-0.41.1.dist-info/top_level.txt,sha256=05C98HbvBK2axUBogC_hAT_CdpOeQYGnQ6vRAgawr8s,8
73
+ rdworks-0.41.1.dist-info/RECORD,,