Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
ifd3f committed Jul 27, 2022
1 parent f6a6c98 commit 2fabbb8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions mdsapt/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def _validate(cls, values):
path = Path(result)
except TypeError:
return TopologySelection(path=result.path, topology_format=result.topology_format,
charge_overrides=result.charge_overrides)
charge_overrides=result.charge_overrides)
return TopologySelection(path=path)

def create_universe(self, *coordinates: Any, **kwargs) -> mda.Universe:
Expand Down Expand Up @@ -164,7 +164,7 @@ class TrajectoryAnalysisConfig(BaseModel):
pairs: Interaction pairs to study
frames:
A selection of frames to analyze.
This may either be a :obj:`RangeFrameSelection` with start/stop/step,
or a list of frame numbers.
Expand Down Expand Up @@ -277,7 +277,7 @@ class DockingAnalysisConfig(BaseModel):
There are two valid modes of selecting the system to analyze:
- Only specifying <combined_topologies>
- Specifying <protein> and <ligands> together
You must choose one mode or the other, you cannot mix the two (i.e. specify
<combined_topologies> and <protein>).
Expand Down
4 changes: 2 additions & 2 deletions mdsapt/utils/ensemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def __len__(self) -> int:
def __getitem__(self, index: str) -> mda.Universe:
"""Allows dictionary like indexing"""
return self._ensemble[index]

def keys(self) -> Iterable[str]:
"""Returns list of system keys"""
return self._ensemble.keys()
Expand Down Expand Up @@ -211,7 +211,7 @@ def select_systems(self, keys: List[str]) -> 'Ensemble':
logger.info('adding system %r to ensemble', k)
_ens[k] = self[k]
return Ensemble(_ens)


class EnsembleAtomGroup:
"""Group for storing selections from :class:`~mdpow.analysis.ensemble.Ensemble`
Expand Down

0 comments on commit 2fabbb8

Please sign in to comment.