Commit 5ed0d255 by peastman Committed by GitHub

Merge pull request #143 from peastman/registeratom

Fixed code that was broken by changes to OpenMM
parents b81a9e42 f2fe538a
...@@ -11,15 +11,22 @@ install: ...@@ -11,15 +11,22 @@ install:
- export PATH=$HOME/miniconda/bin:$PATH - export PATH=$HOME/miniconda/bin:$PATH
script: script:
# Add conda channel # Create a test environment
- conda config --add channels $ORGNAME - conda create --yes -n test python=$python
# Activate the test environment
- source activate test
# Add org channel
- conda config --add channels ${ORGNAME}
# Add omnia dev channels
- conda config --add channels https://conda.anaconda.org/omnia/label/dev
# Build the recipe # Build the recipe
- conda build devtools/conda-recipe - conda build devtools/conda-recipe
# Test the local installation # Install the package
- source activate _test - conda install --yes --use-local ${PACKAGENAME}-dev
# Install testing dependencies
- conda install --yes --quiet nose nose-timer - conda install --yes --quiet nose nose-timer
# Run tests # Test the package
- cd devtools && nosetests $PACKAGENAME --nocapture --verbosity=2 --with-doctest --with-timer -a "\!slow" && cd .. - cd devtools && nosetests $PACKAGENAME --nocapture --verbosity=2 --with-timer --with-doctest -a '!slow' && cd ..
env: env:
matrix: matrix:
......
...@@ -10,12 +10,12 @@ requirements: ...@@ -10,12 +10,12 @@ requirements:
build: build:
- python - python
- setuptools - setuptools
- openmm-dev - openmm
- numpy - numpy
run: run:
- python - python
- openmm-dev - openmm
- numpy - numpy
test: test:
......
...@@ -5,8 +5,8 @@ cd $HOME ...@@ -5,8 +5,8 @@ cd $HOME
# Install Miniconda # Install Miniconda
MINICONDA=Miniconda2-latest-Linux-x86_64.sh MINICONDA=Miniconda2-latest-Linux-x86_64.sh
MINICONDA_HOME=$HOME/miniconda 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') MINICONDA_MD5=$(curl -s https://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 wget -q https://repo.continuum.io/miniconda/$MINICONDA
if [[ $MINICONDA_MD5 != $(md5sum $MINICONDA | cut -d ' ' -f 1) ]]; then if [[ $MINICONDA_MD5 != $(md5sum $MINICONDA | cut -d ' ' -f 1) ]]; then
echo "Miniconda MD5 mismatch" echo "Miniconda MD5 mismatch"
exit 1 exit 1
......
...@@ -1112,7 +1112,7 @@ class PDBFixer(object): ...@@ -1112,7 +1112,7 @@ class PDBFixer(object):
sigma = radii[element.symbol] sigma = radii[element.symbol]
else: else:
sigma = 0.5 sigma = 0.5
nonbonded.typeMap[typeName] = (0.0, sigma, 0.0) nonbonded.registerAtom({'type':typeName, 'charge':'0', 'sigma':str(sigma), 'epsilon':'0'})
indexInResidue[atom.index] = len(template.atoms) indexInResidue[atom.index] = len(template.atoms)
template.atoms.append(app.ForceField._TemplateAtomData(atom.name, typeName, element)) template.atoms.append(app.ForceField._TemplateAtomData(atom.name, typeName, element))
for atom in residue.atoms(): for atom in residue.atoms():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment