|
84 | 84 | from Bio.PDB.ic_data import ic_data_sidechain_extras, residue_atom_bond_state
|
85 | 85 |
|
86 | 86 | # for type checking only
|
87 |
| -from typing import ( |
88 |
| - List, |
89 |
| - Dict, |
90 |
| - Set, |
91 |
| - TextIO, |
92 |
| - Union, |
93 |
| - Tuple, |
94 |
| - cast, |
95 |
| - TYPE_CHECKING, |
96 |
| - Optional, |
97 |
| -) |
| 87 | +from typing import List, Dict, Set, TextIO, Union, Tuple, cast, TYPE_CHECKING, Optional |
98 | 88 |
|
99 | 89 | if TYPE_CHECKING:
|
100 | 90 | from Bio.PDB.Residue import Residue
|
@@ -606,7 +596,7 @@ def init_atom_coords(self) -> None:
|
606 | 596 | a4shift[udFwd] = self.hedraIC[self.dH2ndx, 0][mdFwd] # len12
|
607 | 597 |
|
608 | 598 | self.a4_pre_rotation[:, 2][self.dAtoms_needs_update] = numpy.add(
|
609 |
| - self.a4_pre_rotation[:, 2][self.dAtoms_needs_update], a4shift, |
| 599 | + self.a4_pre_rotation[:, 2][self.dAtoms_needs_update], a4shift |
610 | 600 | ) # so a2 at origin
|
611 | 601 |
|
612 | 602 | # build rz rotation matrix for dihedral angle
|
@@ -1649,7 +1639,7 @@ def clear_transforms(self):
|
1649 | 1639 | d.rcst = None
|
1650 | 1640 |
|
1651 | 1641 | def assemble(
|
1652 |
| - self, resetLocation: bool = False, verbose: bool = False, |
| 1642 | + self, resetLocation: bool = False, verbose: bool = False |
1653 | 1643 | ) -> Union[Dict["AtomKey", numpy.array], Dict[HKT, numpy.array], None]:
|
1654 | 1644 | """Compute atom coordinates for this residue from internal coordinates.
|
1655 | 1645 |
|
@@ -2841,11 +2831,7 @@ def __init__(self, *args: Union[List["AtomKey"], HKT], **kwargs: str) -> None:
|
2841 | 2831 |
|
2842 | 2832 | if "len12" in kwargs:
|
2843 | 2833 | self.lal = numpy.array(
|
2844 |
| - ( |
2845 |
| - float(kwargs["len12"]), |
2846 |
| - float(kwargs["angle"]), |
2847 |
| - float(kwargs["len23"]), |
2848 |
| - ) |
| 2834 | + (float(kwargs["len12"]), float(kwargs["angle"]), float(kwargs["len23"])) |
2849 | 2835 | )
|
2850 | 2836 | else:
|
2851 | 2837 | self.lal = numpy.zeros(3)
|
|
0 commit comments