Skip to content

Commit

Permalink
[visualize] MSM minor bugifx
Browse files Browse the repository at this point in the history
  • Loading branch information
gph82 committed May 28, 2018
1 parent 0864fc5 commit af6a9d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions molpx/visualize.py
Original file line number Diff line number Diff line change
Expand Up @@ -1340,14 +1340,14 @@ def MSM(iMSM, traj_inp,
sample_frames = _sample_indexes_by_state(active_state_indexes, n_overlays, subset=subset, replace=True)
if sample_pos is not None and len(sample_pos)==iMSM.nstates:
pass
elif sample_pos is not None and len(object_for_positions)==iMSM.nstates_obs:
elif sample_pos is not None and len(sample_pos)==iMSM.nstates_obs:
sample_pos = sample_pos[subset]
elif sample_pos is not None:
raise("This is a bug and should not have happened")
else:
sample_frames = iMSM.sample_by_observation_probabilities(n_overlays)
if sample_pos is not None and len(sample_pos)==iMSM.nstates:
sample_pos = object_for_positions
pass
elif sample_pos is not None and len(sample_pos)==iMSM.nstates_obs:
isample_pos = []
for idist in iMSM.observation_probabilities:
Expand Down

0 comments on commit af6a9d8

Please sign in to comment.