Skip to content

Commit

Permalink
commit fix and doc build for version 0.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
aschleg committed Dec 8, 2019
1 parent a4c0e57 commit cd81c71
Show file tree
Hide file tree
Showing 23 changed files with 83 additions and 4,843 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,8 @@

# Version 0.2.3

- Fixes bug in `nhats` function when `return_df` parameter is set to `True`.

# Version 0.2.2

- An optional `return_df` parameter has been implemented in the listed functions below. When set
Expand Down
13 changes: 8 additions & 5 deletions README.md
Expand Up @@ -33,6 +33,14 @@ python setup.py install
* [nasapy Documentation](https://nasapy.readthedocs.io/)
* [Nasa's API documentation page](https://api.nasa.gov/)

## Requirements

* Python 3.4+
* `requests>=2.18`
* `pandas>=0.22.0`
- Although not strictly required to use `nasapy`, the [pandas](https://pandas.pydata.org/) library is needed
for returning results as a DataFrame.

## Examples and Usage

Although not strictly required to begin interacting with the NASA API, it is recommended to sign up
Expand Down Expand Up @@ -212,11 +220,6 @@ julian_date(modified=False)
julian_date(year=2019)
~~~

## Requirements

* Python 3.4+
* `requests>=2.18`

## License

MIT
Binary file modified docs/build/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/build/doctrees/index.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/versions.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/build/html/.buildinfo
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: dcd4018dc8aa2025c0012393ea8eb72e
config: cb14ba640c3632142bbc2ca6e8f2b912
tags: 645f666f9bcd5a90fca523b33c5a78b7
10 changes: 10 additions & 0 deletions docs/build/html/_sources/index.rst.txt
Expand Up @@ -31,6 +31,16 @@ file per the following:
cd nasapy
python setup.py install
Requirements
============

- Python 3.4+
- :code:`requests>=2.18`
- :code:`pandas>=0.22.0`

- Although not strictly required to use :code:`nasapy`, the `pandas <https://pandas.pydata.org/>`_ library is needed
for returning results as a DataFrame.

Examples and Usage
==================

Expand Down
5 changes: 5 additions & 0 deletions docs/build/html/_sources/versions.rst.txt
Expand Up @@ -4,6 +4,11 @@
Version History
===============

Version 0.2.3
-------------

- Fixes bug in :code:`nhats` function when :code:`return_df` parameter is set to :code:`True`.

Version 0.2.2
-------------

Expand Down
2 changes: 1 addition & 1 deletion docs/build/html/_static/documentation_options.js
@@ -1,6 +1,6 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
VERSION: '0.2.2',
VERSION: '0.2.3',
LANGUAGE: 'None',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
Expand Down
2 changes: 1 addition & 1 deletion docs/build/html/api.html
Expand Up @@ -8,7 +8,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>API Reference &mdash; nasapy 0.2.2 documentation</title>
<title>API Reference &mdash; nasapy 0.2.3 documentation</title>



Expand Down
2 changes: 1 addition & 1 deletion docs/build/html/genindex.html
Expand Up @@ -9,7 +9,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Index &mdash; nasapy 0.2.2 documentation</title>
<title>Index &mdash; nasapy 0.2.3 documentation</title>



Expand Down
18 changes: 17 additions & 1 deletion docs/build/html/index.html
Expand Up @@ -8,7 +8,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Nasapy Documentation &mdash; nasapy 0.2.2 documentation</title>
<title>Nasapy Documentation &mdash; nasapy 0.2.3 documentation</title>



Expand Down Expand Up @@ -179,6 +179,22 @@ <h1>Installation<a class="headerlink" href="#installation" title="Permalink to t
</pre></div>
</div>
</div>
<div class="section" id="requirements">
<h1>Requirements<a class="headerlink" href="#requirements" title="Permalink to this headline"></a></h1>
<blockquote>
<div><ul class="simple">
<li>Python 3.4+</li>
<li><code class="code docutils literal notranslate"><span class="pre">requests&gt;=2.18</span></code></li>
<li><code class="code docutils literal notranslate"><span class="pre">pandas&gt;=0.22.0</span></code></li>
</ul>
<blockquote>
<div><ul class="simple">
<li>Although not strictly required to use <code class="code docutils literal notranslate"><span class="pre">nasapy</span></code>, the <a class="reference external" href="https://pandas.pydata.org/">pandas</a> library is needed
for returning results as a DataFrame.</li>
</ul>
</div></blockquote>
</div></blockquote>
</div>
<div class="section" id="examples-and-usage">
<h1>Examples and Usage<a class="headerlink" href="#examples-and-usage" title="Permalink to this headline"></a></h1>
<p>Although not strictly required to begin interacting with the NASA API, it is recommended to sign up
Expand Down
2 changes: 1 addition & 1 deletion docs/build/html/search.html
Expand Up @@ -8,7 +8,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Search &mdash; nasapy 0.2.2 documentation</title>
<title>Search &mdash; nasapy 0.2.3 documentation</title>



Expand Down
2 changes: 1 addition & 1 deletion docs/build/html/searchindex.js

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion docs/build/html/versions.html
Expand Up @@ -8,7 +8,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Version History &mdash; nasapy 0.2.2 documentation</title>
<title>Version History &mdash; nasapy 0.2.3 documentation</title>



Expand Down Expand Up @@ -88,6 +88,7 @@
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="api.html">API Reference</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">Version History</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#version-0-2-3">Version 0.2.3</a></li>
<li class="toctree-l2"><a class="reference internal" href="#version-0-2-2">Version 0.2.2</a></li>
<li class="toctree-l2"><a class="reference internal" href="#version-0-2-1">Version 0.2.1</a></li>
<li class="toctree-l2"><a class="reference internal" href="#version-0-2-0">Version 0.2.0</a></li>
Expand Down Expand Up @@ -159,6 +160,12 @@

<div class="section" id="version-history">
<span id="versions"></span><h1>Version History<a class="headerlink" href="#version-history" title="Permalink to this headline"></a></h1>
<div class="section" id="version-0-2-3">
<h2>Version 0.2.3<a class="headerlink" href="#version-0-2-3" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>Fixes bug in <code class="code docutils literal notranslate"><span class="pre">nhats</span></code> function when <code class="code docutils literal notranslate"><span class="pre">return_df</span></code> parameter is set to <code class="code docutils literal notranslate"><span class="pre">True</span></code>.</li>
</ul>
</div>
<div class="section" id="version-0-2-2">
<h2>Version 0.2.2<a class="headerlink" href="#version-0-2-2" title="Permalink to this headline"></a></h2>
<ul class="simple">
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Expand Up @@ -29,7 +29,7 @@
# The short X.Y version
version = '0.2'
# The full version, including alpha/beta/rc tags
release = '0.2.2'
release = '0.2.3'


# -- General configuration ---------------------------------------------------
Expand Down
10 changes: 10 additions & 0 deletions docs/source/index.rst
Expand Up @@ -31,6 +31,16 @@ file per the following:
cd nasapy
python setup.py install
Requirements
============

- Python 3.4+
- :code:`requests>=2.18`
- :code:`pandas>=0.22.0`

- Although not strictly required to use :code:`nasapy`, the `pandas <https://pandas.pydata.org/>`_ library is needed
for returning results as a DataFrame.

Examples and Usage
==================

Expand Down
5 changes: 5 additions & 0 deletions docs/source/versions.rst
Expand Up @@ -4,6 +4,11 @@
Version History
===============

Version 0.2.3
-------------

- Fixes bug in :code:`nhats` function when :code:`return_df` parameter is set to :code:`True`.

Version 0.2.2
-------------

Expand Down
8 changes: 7 additions & 1 deletion nasapy/api.py
Expand Up @@ -2439,6 +2439,9 @@ def nhats(spk=None, des=None, delta_v=12, duration=450, stay=8, launch='2020-204
if des is not None or spk is not None:
raise ValueError('magnitude parameter cannot be specified when passing a des or spk.')

if not isinstance(return_df, bool):
raise TypeError('return_df parameter must be boolean (True or False)')

params = {
'dv': delta_v,
'dur': duration,
Expand All @@ -2459,7 +2462,7 @@ def nhats(spk=None, des=None, delta_v=12, duration=450, stay=8, launch='2020-204
r = _return_api_result(url=url, params=params)

if return_df:
r = DataFrame(r)
r = DataFrame(r['data'])

return r

Expand Down Expand Up @@ -2591,6 +2594,9 @@ def scout(tdes=None, plot=None, data_files=None, orbits=None, n_orbits=None, eph
if not isinstance(orbits, bool):
raise TypeError('orbits parameter must be boolean (True or False).')

if not isinstance(return_df, bool):
raise TypeError('return_df parameter must be boolean (True or False)')

params = {'tdes': tdes,
'plot': plot,
'file': data_files,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -4,7 +4,7 @@

setup(
name='nasapy',
version='0.2.2',
version='0.2.3',
author='Aaron Schlegel',
author_email='aaron@aaronschlegel.me',
description=('Python wrapper for the NASA API.'),
Expand Down
72 changes: 0 additions & 72 deletions tests/cassettes/fireballs.yml

This file was deleted.

0 comments on commit cd81c71

Please sign in to comment.