Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tuple expression in type annotation #98

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/aposteriori/data_prep/create_frame_data_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def encode_atom(self, atom_label: str) -> np.ndarray:

def encode_gaussian_atom(
self, atom_label: str, modifiers_triple: t.Tuple[float, float, float]
) -> (np.ndarray, int):
) -> tuple[np.ndarray, int]:
"""
Encodes atom as a 3x3 gaussian with length of encoder length. Only the
C, N and O atoms are represented in gaussian form. If Ca and Cb are
Expand Down Expand Up @@ -1255,7 +1255,7 @@ def _select_pdb_chain(
verbosity: int,
return_chain_path: bool = True,
nmr_state: int = None,
) -> (pathlib.Path, ampal.Assembly):
) -> tuple[pathlib.Path, ampal.Assembly]:
"""
Select a chain from a pdb file. The chain will remove the original pdb file.
At the moment we only support the selection of one chain at the time, meaning
Expand Down
Loading