Skip to content

Commit a3f9a56

Browse files
committed
more updates
1 parent 99d1e09 commit a3f9a56

File tree

7 files changed

+1861
-0
lines changed

7 files changed

+1861
-0
lines changed

.gitignore

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
5+
# C extensions
6+
*.so
7+
8+
# Distribution / packaging
9+
.Python
10+
env/
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
*.egg-info/
23+
.installed.cfg
24+
*.egg
25+
26+
# PyInstaller
27+
# Usually these files are written by a python script from a template
28+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
29+
*.manifest
30+
*.spec
31+
32+
# Installer logs
33+
pip-log.txt
34+
pip-delete-this-directory.txt
35+
36+
# Unit test / coverage reports
37+
htmlcov/
38+
.tox/
39+
.coverage
40+
.coverage.*
41+
.cache
42+
nosetests.xml
43+
coverage.xml
44+
*,cover
45+
46+
# Translations
47+
*.mo
48+
*.pot
49+
50+
# Django stuff:
51+
*.log
52+
53+
# Sphinx documentation
54+
doc/_build/
55+
56+
# PyBuilder
57+
target/
58+
59+
# notebook
60+
*/.ipynb_checkpoints/*

.travis.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
language: python
2+
python:
3+
- "3.7"
4+
5+
# command to install dependencies
6+
install:
7+
- pip install -r requirements.txt
8+
- pip install .
9+
10+
script:
11+
- py.test -v --cov=xhistogram --cov-config .coveragerc --cov-report term-missing
12+
13+
after_success:
14+
- codecov

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 Ryan Abernathey
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.rst

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
fastjmd95: Numba implementation of Jackett & McDougall (1995) ocean equation of state
2+
=====================================================================================
3+
4+
|pypi| |conda forge| |Build Status| |codecov| |license|
5+
6+
This package provides a Numba_ implementation the JMD95 equation of state.
7+
8+
Usage
9+
-----
10+
11+
.. code-block:: python
12+
13+
>>> from fastjmd95 import rho, drhods, drhodt
14+
>>> rho(35.5, 3., 3000.)
15+
1041.83267
16+
>>> drhodt(35.5, 3., 3000.)
17+
-0.17244
18+
>>> drhods(35.5, 3., 3000.)
19+
0.77481
20+
21+
.. _Pangeo: http://pangeo-data.github.io
22+
.. _Numba: http://numba.pydata.org/
23+
24+
.. |conda forge| image:: https://anaconda.org/conda-forge/fastjmd95/badges/version.svg
25+
:target: https://anaconda.org/conda-forge/fastjmd95
26+
.. |Build Status| image:: https://travis-ci.org/xgcm/fastjmd95.svg?branch=master
27+
:target: https://travis-ci.org/xgcm/fastjmd95
28+
:alt: travis-ci build status
29+
.. |codecov| image:: https://codecov.io/github/xgcm/fastjmd95/coverage.svg?branch=master
30+
:target: https://codecov.io/github/xgcm/fastjmd95?branch=master
31+
:alt: code coverage
32+
.. |pypi| image:: https://badge.fury.io/py/fastjmd95.svg
33+
:target: https://badge.fury.io/py/fastjmd95
34+
:alt: pypi package
35+
.. |license| image:: https://img.shields.io/github/license/mashape/apistatus.svg
36+
:target: https://github.com/xgcm/fastjmd95
37+
:alt: license

fastjmd95/test/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)