stjames 0.0.56__tar.gz → 0.0.58__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 stjames might be problematic. Click here for more details.

Files changed (75) hide show
  1. {stjames-0.0.56/stjames.egg-info → stjames-0.0.58}/PKG-INFO +1 -1
  2. {stjames-0.0.56 → stjames-0.0.58}/pyproject.toml +1 -1
  3. {stjames-0.0.56 → stjames-0.0.58}/stjames/atomium_stjames/mmcif.py +4 -4
  4. {stjames-0.0.56 → stjames-0.0.58}/stjames/atomium_stjames/pdb.py +2 -2
  5. {stjames-0.0.56 → stjames-0.0.58}/stjames/pdb.py +2 -2
  6. {stjames-0.0.56 → stjames-0.0.58/stjames.egg-info}/PKG-INFO +1 -1
  7. {stjames-0.0.56 → stjames-0.0.58}/LICENSE +0 -0
  8. {stjames-0.0.56 → stjames-0.0.58}/README.md +0 -0
  9. {stjames-0.0.56 → stjames-0.0.58}/setup.cfg +0 -0
  10. {stjames-0.0.56 → stjames-0.0.58}/stjames/__init__.py +0 -0
  11. {stjames-0.0.56 → stjames-0.0.58}/stjames/_deprecated_solvent_settings.py +0 -0
  12. {stjames-0.0.56 → stjames-0.0.58}/stjames/atom.py +0 -0
  13. {stjames-0.0.56 → stjames-0.0.58}/stjames/atomium_stjames/__init__.py +0 -0
  14. {stjames-0.0.56 → stjames-0.0.58}/stjames/atomium_stjames/data.py +0 -0
  15. {stjames-0.0.56 → stjames-0.0.58}/stjames/atomium_stjames/utilities.py +0 -0
  16. {stjames-0.0.56 → stjames-0.0.58}/stjames/base.py +0 -0
  17. {stjames-0.0.56 → stjames-0.0.58}/stjames/basis_set.py +0 -0
  18. {stjames-0.0.56 → stjames-0.0.58}/stjames/calculation.py +0 -0
  19. {stjames-0.0.56 → stjames-0.0.58}/stjames/compute_settings.py +0 -0
  20. {stjames-0.0.56 → stjames-0.0.58}/stjames/constraint.py +0 -0
  21. {stjames-0.0.56 → stjames-0.0.58}/stjames/correction.py +0 -0
  22. {stjames-0.0.56 → stjames-0.0.58}/stjames/data/__init__.py +0 -0
  23. {stjames-0.0.56 → stjames-0.0.58}/stjames/data/bragg_radii.json +0 -0
  24. {stjames-0.0.56 → stjames-0.0.58}/stjames/data/elements.py +0 -0
  25. {stjames-0.0.56 → stjames-0.0.58}/stjames/data/isotopes.json +0 -0
  26. {stjames-0.0.56 → stjames-0.0.58}/stjames/data/nist_isotopes.json +0 -0
  27. {stjames-0.0.56 → stjames-0.0.58}/stjames/data/read_nist_isotopes.py +0 -0
  28. {stjames-0.0.56 → stjames-0.0.58}/stjames/data/symbol_element.json +0 -0
  29. {stjames-0.0.56 → stjames-0.0.58}/stjames/diis_settings.py +0 -0
  30. {stjames-0.0.56 → stjames-0.0.58}/stjames/grid_settings.py +0 -0
  31. {stjames-0.0.56 → stjames-0.0.58}/stjames/int_settings.py +0 -0
  32. {stjames-0.0.56 → stjames-0.0.58}/stjames/message.py +0 -0
  33. {stjames-0.0.56 → stjames-0.0.58}/stjames/method.py +0 -0
  34. {stjames-0.0.56 → stjames-0.0.58}/stjames/mode.py +0 -0
  35. {stjames-0.0.56 → stjames-0.0.58}/stjames/molecule.py +0 -0
  36. {stjames-0.0.56 → stjames-0.0.58}/stjames/opt_settings.py +0 -0
  37. {stjames-0.0.56 → stjames-0.0.58}/stjames/periodic_cell.py +0 -0
  38. {stjames-0.0.56 → stjames-0.0.58}/stjames/py.typed +0 -0
  39. {stjames-0.0.56 → stjames-0.0.58}/stjames/scf_settings.py +0 -0
  40. {stjames-0.0.56 → stjames-0.0.58}/stjames/settings.py +0 -0
  41. {stjames-0.0.56 → stjames-0.0.58}/stjames/solvent.py +0 -0
  42. {stjames-0.0.56 → stjames-0.0.58}/stjames/status.py +0 -0
  43. {stjames-0.0.56 → stjames-0.0.58}/stjames/task.py +0 -0
  44. {stjames-0.0.56 → stjames-0.0.58}/stjames/thermochem_settings.py +0 -0
  45. {stjames-0.0.56 → stjames-0.0.58}/stjames/types.py +0 -0
  46. {stjames-0.0.56 → stjames-0.0.58}/stjames/workflows/__init__.py +0 -0
  47. {stjames-0.0.56 → stjames-0.0.58}/stjames/workflows/admet.py +0 -0
  48. {stjames-0.0.56 → stjames-0.0.58}/stjames/workflows/basic_calculation.py +0 -0
  49. {stjames-0.0.56 → stjames-0.0.58}/stjames/workflows/bde.py +0 -0
  50. {stjames-0.0.56 → stjames-0.0.58}/stjames/workflows/conformer.py +0 -0
  51. {stjames-0.0.56 → stjames-0.0.58}/stjames/workflows/conformer_search.py +0 -0
  52. {stjames-0.0.56 → stjames-0.0.58}/stjames/workflows/descriptors.py +0 -0
  53. {stjames-0.0.56 → stjames-0.0.58}/stjames/workflows/docking.py +0 -0
  54. {stjames-0.0.56 → stjames-0.0.58}/stjames/workflows/electronic_properties.py +0 -0
  55. {stjames-0.0.56 → stjames-0.0.58}/stjames/workflows/fukui.py +0 -0
  56. {stjames-0.0.56 → stjames-0.0.58}/stjames/workflows/hydrogen_bond_basicity.py +0 -0
  57. {stjames-0.0.56 → stjames-0.0.58}/stjames/workflows/irc.py +0 -0
  58. {stjames-0.0.56 → stjames-0.0.58}/stjames/workflows/molecular_dynamics.py +0 -0
  59. {stjames-0.0.56 → stjames-0.0.58}/stjames/workflows/multistage_opt.py +0 -0
  60. {stjames-0.0.56 → stjames-0.0.58}/stjames/workflows/pka.py +0 -0
  61. {stjames-0.0.56 → stjames-0.0.58}/stjames/workflows/redox_potential.py +0 -0
  62. {stjames-0.0.56 → stjames-0.0.58}/stjames/workflows/scan.py +0 -0
  63. {stjames-0.0.56 → stjames-0.0.58}/stjames/workflows/spin_states.py +0 -0
  64. {stjames-0.0.56 → stjames-0.0.58}/stjames/workflows/tautomer.py +0 -0
  65. {stjames-0.0.56 → stjames-0.0.58}/stjames/workflows/workflow.py +0 -0
  66. {stjames-0.0.56 → stjames-0.0.58}/stjames.egg-info/SOURCES.txt +0 -0
  67. {stjames-0.0.56 → stjames-0.0.58}/stjames.egg-info/dependency_links.txt +0 -0
  68. {stjames-0.0.56 → stjames-0.0.58}/stjames.egg-info/requires.txt +0 -0
  69. {stjames-0.0.56 → stjames-0.0.58}/stjames.egg-info/top_level.txt +0 -0
  70. {stjames-0.0.56 → stjames-0.0.58}/tests/test_constraints.py +0 -0
  71. {stjames-0.0.56 → stjames-0.0.58}/tests/test_from_extxyz.py +0 -0
  72. {stjames-0.0.56 → stjames-0.0.58}/tests/test_molecule.py +0 -0
  73. {stjames-0.0.56 → stjames-0.0.58}/tests/test_pdb.py +0 -0
  74. {stjames-0.0.56 → stjames-0.0.58}/tests/test_rounding.py +0 -0
  75. {stjames-0.0.56 → stjames-0.0.58}/tests/test_settings.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: stjames
3
- Version: 0.0.56
3
+ Version: 0.0.58
4
4
  Summary: standardized JSON atom/molecule encoding scheme
5
5
  Author-email: Corin Wagen <corin@rowansci.com>
6
6
  Project-URL: Homepage, https://github.com/rowansci/stjames
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "stjames"
3
- version = "0.0.56"
3
+ version = "0.0.58"
4
4
  description = "standardized JSON atom/molecule encoding scheme"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -399,12 +399,12 @@ def update_models_list(mmcif_dict: dict[str, Any], data_dict: dict[str, Any]) ->
399
399
  # sequences = make_sequences(mmcif_dict)
400
400
  secondary_structure = make_secondary_structure(mmcif_dict)
401
401
  aniso = make_aniso(mmcif_dict)
402
- model: dict[str, Any] = {"polymer": {}, "non-polymer": {}, "water": {}, "branched": {}}
402
+ model: dict[str, Any] = {"polymer": {}, "non_polymer": {}, "water": {}, "branched": {}}
403
403
  model_num = mmcif_dict["atom_site"][0]["pdbx_PDB_model_num"]
404
404
  for atom in mmcif_dict["atom_site"]:
405
405
  if atom["pdbx_PDB_model_num"] != model_num:
406
406
  data_dict["models"].append(model)
407
- model = {"polymer": {}, "non-polymer": {}, "water": {}, "branched": {}}
407
+ model = {"polymer": {}, "non_polymer": {}, "water": {}, "branched": {}}
408
408
  model_num = atom["pdbx_PDB_model_num"]
409
409
  mol_type = types[entities[atom["label_asym_id"]]]
410
410
  if mol_type == "polymer" or mol_type == "branched":
@@ -501,13 +501,13 @@ def add_atom_to_polymer(atom: dict[str, Any], aniso: dict[int, Any], model: dict
501
501
 
502
502
 
503
503
  def add_atom_to_non_polymer(atom: dict[str, Any], aniso: dict[int, Any], model: dict[str, Any], mol_type: str, names: dict[str, Any]) -> None:
504
- """Takes an MMCIF atom dictionary, converts it, and adds it to a non-polymer
504
+ """Takes an MMCIF atom dictionary, converts it, and adds it to a non_polymer
505
505
  dictionary.
506
506
 
507
507
  :param dict atom: the .mmcif dictionary to read.
508
508
  :param dict aniso: lookup dictionary for anisotropy information.
509
509
  :param dict model: the model to update.
510
- :param str mol_type: non-polymer or water.
510
+ :param str mol_type: non_polymer or water.
511
511
  :param dict names: the lookup dictionary for full name information."""
512
512
 
513
513
  mol_id = make_residue_id(atom)
@@ -145,7 +145,7 @@ def update_models_list(pdb_dict: dict[str, Any], data_dict: dict[str, Any]) -> N
145
145
  for model_lines in pdb_dict["MODEL"]:
146
146
  aniso = make_aniso(model_lines)
147
147
  last_ter = get_last_ter_line(model_lines)
148
- model: dict[str, Any] = {"polymer": {}, "non-polymer": {}, "water": {}}
148
+ model: dict[str, Any] = {"polymer": {}, "non_polymer": {}, "water": {}}
149
149
  for index, line in enumerate(model_lines):
150
150
  if line[:6] in ["ATOM ", "HETATM"]:
151
151
  chain_id = line[21] if index < last_ter else id_from_line(line)
@@ -512,7 +512,7 @@ def add_atom_to_non_polymer(line: str, model: dict[Any, Any], res_id: str, aniso
512
512
  :param str res_id: the molecule ID to add to.
513
513
  :param dict aniso_dict: lookup dictionary for anisotropy information."""
514
514
 
515
- key = "water" if line[17:20] in ["HOH", "DOD"] else "non-polymer"
515
+ key = "water" if line[17:20] in ["HOH", "DOD"] else "non_polymer"
516
516
  try:
517
517
  model[key][res_id]["atoms"][int(line[6:11])] = atom_line_to_dict(line, aniso_dict)
518
518
  except Exception:
@@ -84,7 +84,7 @@ class PDBModel(BaseModel):
84
84
  model_config = ConfigDict(extra=EXTRA)
85
85
 
86
86
  polymer: dict[str, PDBPolymer] = {}
87
- non_polymer: dict[str, PDBNonPolymer] = Field(alias="non-polymer", default_factory=dict)
87
+ non_polymer: dict[str, PDBNonPolymer] = {}
88
88
  branched: dict[str, Any] = {}
89
89
  water: dict[str, PDBWater] = {}
90
90
 
@@ -179,7 +179,7 @@ class PDBDescription(BaseModel):
179
179
  if isinstance(v, date):
180
180
  return v.isoformat()
181
181
 
182
- return str(date)
182
+ return str(v)
183
183
 
184
184
 
185
185
  class PDB(BaseModel):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: stjames
3
- Version: 0.0.56
3
+ Version: 0.0.58
4
4
  Summary: standardized JSON atom/molecule encoding scheme
5
5
  Author-email: Corin Wagen <corin@rowansci.com>
6
6
  Project-URL: Homepage, https://github.com/rowansci/stjames
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes