forked from josephhardinee/PyDSD
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added travis CI files needed to auto-generate docs * Added Gallery Support
- Loading branch information
1 parent
3e5810e
commit cf77493
Showing
10 changed files
with
85 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,47 @@ | ||
sudo: false | ||
env: | ||
global: | ||
- LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libgfortran.so.3 | ||
global: | ||
- LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libgfortran.so.3 | ||
- secure: "HC56kqcyplnfsHFZpM122GVdG8j0b6M1uexIJKVCpy8YS6u7ooS8Oh9jp6OxDyg47OtGJGRPeGvQJ2bMuKhbNz+3YHNxf08AJVApwPq+25PpfGedMWMgmZI42zAzN6RYVUDjYEZb3Y52j4Kw8UaFwfdxoPVFhTiRCgr054laZFc=" | ||
addons: | ||
apt: | ||
packages: | ||
- gfortran | ||
apt: | ||
packages: | ||
- gfortran | ||
language: python | ||
|
||
matrix: | ||
include: | ||
- python: "2.7" | ||
env: | ||
- PYTHON_VERSION="2.7" | ||
- NOSE_ARGS="-v --no-skip --with-cov --cov pydisdrometer pydisdrometer" | ||
- COVERALLS="true" | ||
- python: "3.4" | ||
env: | ||
- PYTHON_VERSION="3.4" | ||
- NOSE_ARGS="-v --no-skip --with-cov --cov pydisdrometer pydisdrometer" | ||
- COVERALLS="true" | ||
- python: "3.5" | ||
env: | ||
- PYTHON_VERSION="3.5" | ||
- NOSE_ARGS="-v --no-skip --with-cov --cov pydisdrometer pydisdrometer" | ||
- COVERALLS="true" | ||
- python: "3.6" | ||
env: | ||
- PYTHON_VERSION="3.6" | ||
- NOSE_ARGS="-v --no-skip --with-cov --cov pydisdrometer pydisdrometer" | ||
- COVERALLS="true" | ||
|
||
|
||
|
||
- python: '2.7' | ||
env: | ||
- PYTHON_VERSION="2.7" | ||
- NOSE_ARGS="-v --no-skip --with-cov --cov pydisdrometer pydisdrometer" | ||
- COVERALLS="true" | ||
- python: '3.4' | ||
env: | ||
- PYTHON_VERSION="3.4" | ||
- NOSE_ARGS="-v --no-skip --with-cov --cov pydisdrometer pydisdrometer" | ||
- COVERALLS="true" | ||
- python: '3.5' | ||
env: | ||
- PYTHON_VERSION="3.5" | ||
- NOSE_ARGS="-v --no-skip --with-cov --cov pydisdrometer pydisdrometer" | ||
- COVERALLS="true" | ||
- python: '3.6' | ||
env: | ||
- PYTHON_VERSION="3.6" | ||
- NOSE_ARGS="-v --no-skip --with-cov --cov pydisdrometer pydisdrometer" | ||
- COVERALLS="true" | ||
- python: '3.6' | ||
env: | ||
- PYTHON_VERSION="3.6" | ||
- NOSE_ARGS="-v --no-skip --with-cov --cov pydisdrometer pydisdrometer" | ||
- COVERALLS="true" | ||
- DOC_BUILD="true" | ||
before_install: | ||
- pip install pytest pytest-cov | ||
- pip install coveralls | ||
|
||
- pip install pytest pytest-cov | ||
- pip install coveralls | ||
install: source continuous_integration/install.sh | ||
|
||
script: eval xvfb-run nosetests $NOSE_ARGS | ||
|
||
after_success: | ||
- coveralls | ||
- coveralls | ||
- if [[ "$DOC_BUILD" == "true" ]]; then cd $TRAVIS_BUILD_DIR; source continuous_integration/build_docs.sh; | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
set -e | ||
pip install doctr pillow | ||
cd docs | ||
make html | ||
cd .. | ||
doctr deploy . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
PyDisdrometer Example Gallery | ||
----------------------------- | ||
|
||
PyDisdrometer Example Gallery. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
""" | ||
Simple Example | ||
-------------- | ||
A simple example using PyDisdrometer. This example reads in a OTT APU Disdrometer file, calculates the radar variables, and plots a few of them. | ||
Author: Joseph C. Hardin | ||
""" | ||
|
||
import numpy as np | ||
import matplotlib.pyplot as plt | ||
|
||
import pydisdrometer as pyd | ||
|
||
|
||
filename = '../testdata/sgpdisdrometerC1.b1.20110427.000000_test_jwd_b1.cdf' | ||
dsd = pyd.aux_readers.ARM_JWD_Reader.read_arm_jwd_b1(filename) | ||
#Read in the Parsivel File | ||
fig = plt.figure(figsize=(8,8)) | ||
plt.plot(dsd.fields['Nd']['data'][0]) | ||
|
||
plt.show() | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
gAAAAABZEXC5ptLv2EA1JmT071Kox6mmjLG7VFjFExw1gAfkAWD5OqVFP5MC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