Skip to content

Commit

Permalink
Merge pull request #222 from Lnaden/fixComputeMultiple
Browse files Browse the repository at this point in the history
Fixed a typo in computeMultipleExpectations
  • Loading branch information
jchodera committed Mar 30, 2016
2 parents 1f1aa86 + 298c85d commit e2d0ef0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion devtools/travis-ci/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pushd .
cd $HOME

# Install Miniconda
MINICONDA=Miniconda-latest-Linux-x86_64.sh
MINICONDA=Miniconda2-latest-Linux-x86_64.sh
MINICONDA_HOME=$HOME/miniconda
MINICONDA_MD5=$(curl -s http://repo.continuum.io/miniconda/ | grep -A3 $MINICONDA | sed -n '4p' | sed -n 's/ *<td>\(.*\)<\/td> */\1/p')
wget -q http://repo.continuum.io/miniconda/$MINICONDA
Expand Down
2 changes: 1 addition & 1 deletion pymbar/mbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ def computeMultipleExpectations(self, A_in, u_n, compute_uncertainty=True, compu

if compute_uncertainty or compute_covariance:
Adiag = np.zeros([2*I,2*I],dtype=np.float64)
diag = np.ones(2*K,dtype=np.float64)
diag = np.ones(2*I,dtype=np.float64)
diag[0:I] = diag[I:2*I] = inner_results['observables']-inner_results['Amin']
np.fill_diagonal(Adiag,diag)
Theta = Adiag*inner_results['Theta']*Adiag
Expand Down

0 comments on commit e2d0ef0

Please sign in to comment.