Skip to content

Commit

Permalink
[thermo] adding type check for md_trajs
Browse files Browse the repository at this point in the history
  • Loading branch information
cwehmeyer committed Jun 13, 2016
1 parent 499193f commit b68fabc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyemma/thermo/util/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ def _get_umbrella_sampling_parameters(
raise ValueError(
"Unmatching number of umbrella sampling trajectories and force constants: %d!=%d" \
% (len(us_trajs), len(us_force_constants)))
if md_trajs is not None:
if not isinstance(md_trajs, (list, tuple)):
raise ValueError("The parameter md_trajs must be a list of numpy.ndarray objects")
for i, traj in enumerate(us_trajs):
state = None
try:
Expand Down

0 comments on commit b68fabc

Please sign in to comment.