Skip to content

Commit

Permalink
Corrected function annotation of edr_to_dict
Browse files Browse the repository at this point in the history
  • Loading branch information
BFedder committed Aug 31, 2022
1 parent c81aefb commit d078436
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pyedr/pyedr/pyedr.py
Expand Up @@ -491,8 +491,7 @@ def get_unit_dictionary(path: str) -> Dict[str, str]:
return unit_dict


def edr_to_dict(path: str, verbose: bool = False) -> (Dict[str, np.ndarray],
Dict[str, str]):
def edr_to_dict(path: str, verbose: bool = False) -> Dict[str, np.ndarray]:
"""Calls :func:`read_edr` and packs its return values into a dictionary
The returned dictionary's keys are the names of the energy terms present in
Expand All @@ -509,8 +508,6 @@ def edr_to_dict(path: str, verbose: bool = False) -> (Dict[str, np.ndarray],
-------
enery_dict: dict[str, np.ndarray]
dictionary that holds all energy terms found in the EDR file.
unit_dict: Dict[str, str]
A dictionary mapping the term names to their units.
"""
all_energies, all_names, times = read_edr(path, verbose=verbose)
energy_dict = {}
Expand Down

0 comments on commit d078436

Please sign in to comment.