Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pdbfixer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pdbfixer
Commits
5ed0d255
Commit
5ed0d255
authored
Dec 06, 2016
by
peastman
Committed by
GitHub
Dec 06, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #143 from peastman/registeratom
Fixed code that was broken by changes to OpenMM
parents
b81a9e42
f2fe538a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
11 deletions
+18
-11
.travis.yml
+13
-6
devtools/conda-recipe/meta.yaml
+2
-2
devtools/travis-ci/install.sh
+2
-2
pdbfixer/pdbfixer.py
+1
-1
No files found.
.travis.yml
View file @
5ed0d255
...
...
@@ -11,15 +11,22 @@ install:
-
export PATH=$HOME/miniconda/bin:$PATH
script
:
# Add conda channel
-
conda config --add channels $ORGNAME
# Create a test environment
-
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
-
conda build devtools/conda-recipe
# Test the local installation
-
source activate _test
# Install the package
-
conda install --yes --use-local ${PACKAGENAME}-dev
# Install testing dependencies
-
conda install --yes --quiet nose nose-timer
#
Run tests
-
cd devtools && nosetests $PACKAGENAME --nocapture --verbosity=2 --with-
doctest --with-timer -a "\!slow"
&& cd ..
#
Test the package
-
cd devtools && nosetests $PACKAGENAME --nocapture --verbosity=2 --with-
timer --with-doctest -a '!slow'
&& cd ..
env
:
matrix
:
...
...
devtools/conda-recipe/meta.yaml
View file @
5ed0d255
...
...
@@ -10,12 +10,12 @@ requirements:
build
:
-
python
-
setuptools
-
openmm
-dev
-
openmm
-
numpy
run
:
-
python
-
openmm
-dev
-
openmm
-
numpy
test
:
...
...
devtools/travis-ci/install.sh
View file @
5ed0d255
...
...
@@ -5,8 +5,8 @@ cd $HOME
# Install Miniconda
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
MINICONDA_MD5
=
$(
curl
-s
http
s
://repo.continuum.io/miniconda/ |
grep
-A3
$MINICONDA
| sed
-n
'4p'
| sed
-n
's/ *<td>\(.*\)<\/td> */\1/p'
)
wget
-q
http
s
://repo.continuum.io/miniconda/
$MINICONDA
if
[[
$MINICONDA_MD5
!=
$(
md5sum
$MINICONDA
| cut
-d
' '
-f
1
)
]]
;
then
echo
"Miniconda MD5 mismatch"
exit
1
...
...
pdbfixer/pdbfixer.py
View file @
5ed0d255
...
...
@@ -1112,7 +1112,7 @@ class PDBFixer(object):
sigma
=
radii
[
element
.
symbol
]
else
:
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
)
template
.
atoms
.
append
(
app
.
ForceField
.
_TemplateAtomData
(
atom
.
name
,
typeName
,
element
))
for
atom
in
residue
.
atoms
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment