Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quaternion fix and version #98

Open
wants to merge 47 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
b3f3f5f
Fix quaternion
acruzpr Apr 1, 2019
3be289a
Update version
acruzpr Apr 1, 2019
4bb1016
Fix version
acruzpr Apr 1, 2019
20152bd
Update .travis.yml
acruzpr Apr 2, 2019
66ea9f1
Update .travis.yml
acruzpr Apr 2, 2019
eda244b
Change build status to master
acruzpr Apr 2, 2019
7246538
Update meta.yaml
acruzpr Apr 2, 2019
98ae65d
Update meta.yaml
acruzpr Apr 2, 2019
b735b52
Move to toolchain3
acruzpr Apr 2, 2019
24f5719
Update README.md
acruzpr Apr 3, 2019
9a77533
Only test python=2.7,3.5, and 3.6
acruzpr Apr 3, 2019
b245b98
Trying toolchain2
acruzpr Apr 3, 2019
86a20c4
Trayin toolchain
acruzpr Apr 3, 2019
360eaef
Update .travis.yml
acruzpr Apr 3, 2019
5aeb39d
Update .travis.yml
acruzpr Apr 3, 2019
6e2f002
Update meta.yaml
acruzpr Apr 3, 2019
19f9e85
Test possible missing package in Travis
acruzpr Apr 4, 2019
fbba635
Fix for Travis CI
acruzpr Apr 8, 2019
10c3721
Update .travis.yml
acruzpr Apr 8, 2019
b5d2262
Travis fix 2
acruzpr Apr 8, 2019
bb767f7
Travis fix 3
acruzpr Apr 8, 2019
c18818a
Travis fix 4
acruzpr Apr 8, 2019
24203b5
revert Travis
acruzpr Apr 8, 2019
c16e034
conda-build last known good build
acruzpr Apr 8, 2019
3ac4ed3
travis fix 5
acruzpr Apr 8, 2019
f0158be
Travis change 6
acruzpr Apr 9, 2019
4c40473
Update meta.yaml
acruzpr Apr 9, 2019
c55a9b5
toolchain changed
acruzpr Apr 9, 2019
7387b4c
Get env info to reproduce Travis
acruzpr Apr 9, 2019
62433d4
Try fix from Travis Help email
acruzpr Apr 16, 2019
12d9456
remove ubuntu toolchain
acruzpr Apr 17, 2019
4d14c62
toolchain3
acruzpr Apr 17, 2019
5214a40
specify versions
acruzpr Apr 17, 2019
2de2b0c
Update meta.yaml
acruzpr Apr 17, 2019
11d01b6
Update .travis.yml
acruzpr Apr 17, 2019
9ebc0b7
fix problem with libgcc
acruzpr May 23, 2019
cdae1d4
remove CC
acruzpr May 23, 2019
2d3fbbf
mod ld from conda
acruzpr May 23, 2019
a873dc6
try 2 ld
acruzpr May 23, 2019
da15da4
rename ld
acruzpr May 24, 2019
e7f1a5a
change way to get compiler
acruzpr May 24, 2019
0f18428
no need to rename ld
acruzpr May 24, 2019
5f8469a
no need to rename ld
acruzpr May 24, 2019
b743edb
variant 2
acruzpr May 24, 2019
5621c2b
add host
acruzpr May 24, 2019
81d2b59
trigger build
acruzpr May 24, 2019
cbc1ac4
adding cxx compiler
acruzpr May 24, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ addons:
apt:
sources:
- ubuntu-toolchain-r-test

before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install md5sha1sum; fi

Expand All @@ -27,10 +27,17 @@ script:
- conda config --add channels ${ORGNAME}
# Create a test environment
- conda create --quiet --yes -n test python=$python
# Activate root environment
#- source activate root
# Activate the test environment
- source activate test
# Get conda info
- conda info
# Get environment info
- conda list --explicit
# Build recipie
- conda build devtools/conda-recipe
#- conda-build devtools/conda-recipe -c conda-forge/label/gcc7
# Install locally-built package
- conda install --yes --quiet --use-local ${PACKAGENAME}
#- conda install --yes --quiet pip nose nose-timer
Expand All @@ -41,17 +48,16 @@ os:
- osx
- linux


env:
matrix:
- python=2.7 CONDA_PY=27
# - python=3.4 CONDA_PY=34
- python=3.5 CONDA_PY=35
- python=3.6 CONDA_PY=36

global:

- PACKAGENAME="sstmap"
- ORGNAME="solvationtools"

after_success:
- source devtools/travis-ci/deploy_anaconda.sh
- source devtools/travis-ci/deploy_anaconda.sh
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
CC = g++
SOURCEDIR = ./sstmap
INSTALLDIR = ~/anaconda2/bin
bruteclust: $(SOURCEDIR)/make_clust_brute.cpp
Expand All @@ -18,4 +17,4 @@ clean:
rm -f kdhsa102
rm -f 6dimprobable

test: pytest -m tests
test: pytest -m tests
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/kamran-haider/SSTMap.svg?branch=v1.1_dev)](https://travis-ci.org/kamran-haider/SSTMap)
[![Build Status](https://travis-ci.org/kamran-haider/SSTMap.svg?branch=master)](https://travis-ci.org/kamran-haider/SSTMap)
[![Anaconda-Server Badge](https://anaconda.org/solvationtools/sstmap/badges/installer/conda.svg)](https://conda.anaconda.org/solvationtools)
[![Anaconda-Server Badge](https://anaconda.org/solvationtools/sstmap/badges/downloads.svg)](https://anaconda.org/solvationtools/sstmap)
[![DOI for Citing SSTMap](https://img.shields.io/badge/DOI-10.1021%2Fj.jctc.2017.11.021-blue.svg)](http://doi.org/10.1021/acs.jctc.7b00592)
Expand Down Expand Up @@ -38,8 +38,8 @@ You can also download the release package manually from GitHub, unzip it, naviga

```bash
https://github.com/KurtzmanLab/SSTMap/archive/1.1.4.tar.gz or https://github.com/KurtzmanLab/SSTMap/archive/1.1.4.zip
tar -xvf 1.1.4.tar.gz or unzip 1.0.0.zip
cd SSTMap-1.0
tar -xvf 1.1.4.tar.gz or unzip 1.1.4.zip
cd SSTMap-1.1.4
python setup.py install
```
Or you can clone the GitHub repository, navigate into the directory, and execute the command:
Expand All @@ -54,6 +54,7 @@ git checkout tags/1.1.4
python setup.py install
```
**For the developmental version:**

```
python setup.py install
```
Expand Down Expand Up @@ -109,7 +110,7 @@ Principal Developer(s)
Co-Developers
-------------
* Steven Ramsey <vpsramsey@gmail.com>
* Anthony Cruz Balberdi <anthonycruzpr@gmail.com>
* Anthony Cruz Balberdy <anthonycruzpr@gmail.com>
* Tobias Wulsdorf <tobias.wulsdorf@pharmazie.uni-marburg.de>

Principal Investigators
Expand Down
22 changes: 13 additions & 9 deletions devtools/conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
package:
name: sstmap
version: 1.1.3
version: 1.1.4

source:
path: ../../


requirements:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
host:
- python
- numpy 1.14.0
- setuptools
- gcc
- toolchain
- libgcc
- numpy
- setuptools
- conda-build
- toolchain3
- libgcc
- gsl 2.2.1
- libopenblas

- libopenblas
- libgcc-ng
- libstdcxx-ng
run:
- python
- libgcc
- numpy
- numpy
- scipy
- mdtraj
- parmed
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
sources=['sstmap/_sstmap_ext.c'],
include_dirs=[numpy.get_include()],
extra_link_args=['-lgsl','-lgslcblas']))

extensions.append(Extension('_sstmap_entropy',
sources=['sstmap/_sstmap_entropy.cpp', 'sstmap/kdhsa102.cpp'],
language="c++"))
Expand Down
2 changes: 1 addition & 1 deletion sstmap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
__license__ = "MIT"
__maintainer__ = "Kamran Haider"
__email__ = "kamranhaider.mb@gmail.com"
__version__ = "1.1.3"
__version__ = "1.1.4"


from sstmap import site_water_analysis, grid_water_analysis, utils
Expand Down
4 changes: 2 additions & 2 deletions sstmap/grid_water_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def calculate_euler_angles(self, water, coords):

H_temp = np.zeros(3)
H_temp[0] = ((w2*w2+x2*x2)-(y2*y2+z2*z2))*h1wat[0]
H_temp[0] = (2*(x2*y2 - w2*z2)*h1wat[1]) + H_temp[0]
H_temp[0] = (2*(x2*y2 + w2*z2)*h1wat[1]) + H_temp[0]
H_temp[0] = (2*(x2*z2-w2*y2)*h1wat[2]) + H_temp[0]

H_temp[1] = 2*(x2*y2 - w2*z2)* h1wat[0]
Expand All @@ -235,7 +235,7 @@ def calculate_euler_angles(self, water, coords):
H_temp2 = np.zeros(3,)
H_temp2[0] = ((w2*w2+x2*x2)-(y2*y2+z2*z2))*h2wat[0]
H_temp2[0] = (2*(x2*y2 + w2*z2)*h2wat[1]) + H_temp2[0]
H_temp2[0] = (2*(x2*z2-w2*y2)+h2wat[2]) +H_temp2[0]
H_temp2[0] = (2*(x2*z2-w2*y2)*h2wat[2]) +H_temp2[0]

H_temp2[1] = 2*(x2*y2 - w2*z2) *h2wat[0]
H_temp2[1] = ((w2*w2-x2*x2+y2*y2-z2*z2)*h2wat[1]) +H_temp2[1]
Expand Down