Skip to content

Commit

Permalink
Merge branch 'development' into nosimplejson
Browse files Browse the repository at this point in the history
  • Loading branch information
lewispurigenbio committed Oct 2, 2020
2 parents df08e10 + 78d84a0 commit b64b6d0
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 24 deletions.
22 changes: 6 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,16 @@
sudo: false
language: python
python:
- '2.7'
- '3.5'
- '3.7'
- '3.8'
notifications:
email: false
install:
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh
-O miniconda.sh; else wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
-O miniconda.sh; fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy scipy nose
coverage biopython click
- source activate test-environment
- pip install coveralls
- pip install coverage coveralls
- pip install -r requirements.txt
script:
- coverage run --source=ionize setup.py test
- coverage run --source=ionize setup.py test

after_success: coveralls
deploy:
provider: pypi
Expand Down
4 changes: 1 addition & 3 deletions ionize/PolyIon/Peptide.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ def charge(self, pH=None, ionic_strength=None, temperature=None,
neg_pKs['Cterm'] = pKcterminal[cterm]

charge = IsoelectricPoint(self.sequence,
amino_acid_count)._chargeR(pH,
pos_pKs,
neg_pKs)
amino_acid_count).charge_at_pH(pH)
return charge**moment

def isoelectric_point(self, ionic_strength=None, temperature=None):
Expand Down
4 changes: 2 additions & 2 deletions ionize/Solution/equilibrium.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ def _calculate_pH(self, ionic_strength):
np.array(concentrations)[:, np.newaxis], 0)
# Construct polynomial. Change the shapes as needed, then reverse the order
if len(P) < len(Q):
P.resize(Q.shape)
P = np.resize(P, Q.shape)
elif len(P) > len(Q):
Q.resize(P.shape)
Q = np.resize(Q, P.shape)
poly = (P+Q)[::-1]

# Solve Polynomial for concentration
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pandas>=1.0.1
pandas>=1.0.0
pypandoc>=1.4
numpy>=1.18.1
scipy>=1.4.1
numpy>=1.16.0
scipy>=1.4.0
Click>=7.0
biopython>=0.0.6

0 comments on commit b64b6d0

Please sign in to comment.