Skip to content

Commit a3eb7dc

Browse files
authored
Merge pull request #13 from jevandezande/typos
Fixes typos
2 parents 44625f1 + 6d1490b commit a3eb7dc

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
[![Codecov](https://img.shields.io/codecov/c/github/ntampellini/prism_pruner)](https://codecov.io/gh/ntampellini/prism_pruner)
88
[![PyPI - Version](https://img.shields.io/pypi/v/prism_pruner)](https://pypi.org/project/prism-pruner/)
99

10-
PRISM (PRuning Interface for Similar Molecules) is the modular similarity pruning code originally from [FIRECODE](https://github.com/ntampellini/FIRECODE/tree/main), in a polished standalone package. It filters out duplicate structures from conformational ensembles, leaving behind non-redundant states.
10+
PRISM (Pruning Interface for Similar Molecules) is the modular similarity pruning code originally from [FIRECODE](https://github.com/ntampellini/FIRECODE/tree/main), in a polished standalone package. It filters out duplicate structures from conformational ensembles, leaving behind non-redundant states.
1111

12-
The code implements a cached, iterative, divide-and conquer approach on increasingly large subsets of the ensemble and removes duplicates as assessed by one of three metrics:
12+
The code implements a cached, iterative, divide-and-conquer approach on increasingly large subsets of the ensemble and removes duplicates as assessed by one of three metrics:
1313
- Relative deviation of the moments of inertia on the principal axes
1414
- Heavy-atom RMSD and maximum deviation
1515
- Rotamer-corrected heavy-atom RMSD and maximum deviation

prism_pruner/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"""PRISM - PRuning Interface for Similar Molecules."""
1+
"""PRISM - Pruning Interface for Similar Molecules."""

prism_pruner/graph_manipulations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def get_sp_n(index: int, graph: Graph) -> int | None:
6060
This is just an assimilation to the carbon geometry in relation to sp^n:
6161
- sp¹ is linear
6262
- sp² is planar
63-
- sp³ is tetraedral
63+
- sp³ is tetrahedral
6464
This is mainly used to understand if a torsion is to be rotated or not.
6565
"""
6666
atom = graph.nodes[index]["atoms"]
@@ -139,7 +139,7 @@ def is_phenyl(coords: Array2D_float) -> bool:
139139
140140
Note: quinones evaluate to True
141141
142-
:params coords: six coordinates of C/N atoms
142+
:param coords: six coordinates of C/N atoms
143143
:return: bool indicating if the six atoms look like part of a phenyl/naphtyl/pyridine
144144
system, coordinates for the center of that ring
145145
"""

prism_pruner/pruner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""PRISM - PRuning Interface for Similar Molecules."""
1+
"""PRISM - Pruning Interface for Similar Molecules."""
22

33
from dataclasses import dataclass, field
44
from time import perf_counter
@@ -206,7 +206,7 @@ def _main_compute_subrow(
206206
Ignores structures that are False (0) in in_mask and does not perform
207207
the comparison if the energy difference between the structures is less
208208
than self.max_dE. Saves dissimilar structural pairs (i.e. that evaluate to
209-
False (0)) by adding them to self.cache, avoiding redundant calcaulations.
209+
False (0)) by adding them to self.cache, avoiding redundant calculations.
210210
"""
211211
i1 = first_abs_index
212212

prism_pruner/rmsd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""PRISM - PRuning Interface for Similar Molecules."""
1+
"""PRISM - Pruning Interface for Similar Molecules."""
22

33
import numpy as np
44

prism_pruner/torsion_module.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""PRISM - PRuning Interface for Similar Molecules."""
1+
"""PRISM - Pruning Interface for Similar Molecules."""
22

33
from copy import deepcopy
44
from dataclasses import dataclass
@@ -436,7 +436,7 @@ def rotationally_corrected_rmsd_and_max(
436436
best_rmsd = locally_corrected_rmsd
437437
torsion_corrections[i] = angle
438438

439-
# it is faster to undo the rotation rather than working with a copy of coordss
439+
# it is faster to undo the rotation rather than working with a copy of coords
440440
coord = rotate_dihedral(coord, torsion, -angle, indices_to_be_moved=[torsion[3]])
441441

442442
# now rotate that angle to the desired orientation before going to the next angle

prism_pruner/typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""PRISM - PRuning Interface for Similar Molecules."""
1+
"""PRISM - Pruning Interface for Similar Molecules."""
22

33
from typing import Annotated, Any, Union
44

prism_pruner/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""PRISM - PRuning Interface for Similar Molecules."""
1+
"""PRISM - Pruning Interface for Similar Molecules."""
22

33
from typing import Any, Sequence
44

0 commit comments

Comments
 (0)