Skip to content

Commit

Permalink
minor typo in r_squared docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
cjekel committed Feb 25, 2019
1 parent d594c44 commit ace41f4
Show file tree
Hide file tree
Showing 28 changed files with 33 additions and 16 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.3.5] - 2019-02-25
### Changed
- minor correction to r_squared docstring example

## [0.3.4] - 2019-02-06
### Added
- Uploaded paper and citation information
Expand Down
1 change: 1 addition & 0 deletions convert_README_to_RST.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#!/usr/bin/env bash
pandoc --from=markdown --to=rst --output=README.rst README.md
2 changes: 1 addition & 1 deletion docs/_static/documentation_options.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
VERSION: '0.3.4',
VERSION: '0.3.5',
LANGUAGE: 'None',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
Expand Down
2 changes: 1 addition & 1 deletion docs/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>About &#8212; pwlf 0.3.4 documentation</title>
<title>About &#8212; pwlf 0.3.5 documentation</title>
<link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion docs/examples.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Examples &#8212; pwlf 0.3.4 documentation</title>
<title>Examples &#8212; pwlf 0.3.5 documentation</title>
<link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion docs/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Index &#8212; pwlf 0.3.4 documentation</title>
<title>Index &#8212; pwlf 0.3.5 documentation</title>
<link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion docs/how_it_works.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>How it works &#8212; pwlf 0.3.4 documentation</title>
<title>How it works &#8212; pwlf 0.3.5 documentation</title>
<link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>pwlf: piecewise linear fitting &#8212; pwlf 0.3.4 documentation</title>
<title>pwlf: piecewise linear fitting &#8212; pwlf 0.3.5 documentation</title>
<link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion docs/installation.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Installation &#8212; pwlf 0.3.4 documentation</title>
<title>Installation &#8212; pwlf 0.3.5 documentation</title>
<link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion docs/license.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>License &#8212; pwlf 0.3.4 documentation</title>
<title>License &#8212; pwlf 0.3.5 documentation</title>
<link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion docs/modules.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>pwlf &#8212; pwlf 0.3.4 documentation</title>
<title>pwlf &#8212; pwlf 0.3.5 documentation</title>
<link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions docs/pwlf.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>pwlf package contents &#8212; pwlf 0.3.4 documentation</title>
<title>pwlf package contents &#8212; pwlf 0.3.5 documentation</title>
<link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
Expand Down Expand Up @@ -952,7 +952,7 @@ <h1>pwlf package contents<a class="headerlink" href="#pwlf-package-contents" tit
<span class="gp">&gt;&gt;&gt; </span><span class="n">y</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">random</span><span class="o">.</span><span class="n">random</span><span class="p">(</span><span class="mi">10</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">my_pwlf</span> <span class="o">=</span> <span class="n">pwlf</span><span class="o">.</span><span class="n">PiecewiseLinFit</span><span class="p">(</span><span class="n">x</span><span class="p">,</span> <span class="n">y</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">breaks</span> <span class="o">=</span> <span class="n">my_pwlf</span><span class="o">.</span><span class="n">fitfast</span><span class="p">(</span><span class="mi">3</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">rsq</span> <span class="o">=</span> <span class="n">PiecewiseLinFit</span><span class="o">.</span><span class="n">r_squared</span><span class="p">()</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">rsq</span> <span class="o">=</span> <span class="n">my_pwlf</span><span class="o">.</span><span class="n">r_squared</span><span class="p">()</span>
</pre></div>
</div>
</dd></dl>
Expand Down
2 changes: 1 addition & 1 deletion docs/py-modindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Python Module Index &#8212; pwlf 0.3.4 documentation</title>
<title>Python Module Index &#8212; pwlf 0.3.5 documentation</title>
<link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Requirements &#8212; pwlf 0.3.4 documentation</title>
<title>Requirements &#8212; pwlf 0.3.5 documentation</title>
<link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion docs/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Search &#8212; pwlf 0.3.4 documentation</title>
<title>Search &#8212; pwlf 0.3.5 documentation</title>
<link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />

Expand Down
Binary file modified doctrees/about.doctree
Binary file not shown.
Binary file modified doctrees/environment.pickle
Binary file not shown.
Binary file modified doctrees/examples.doctree
Binary file not shown.
Binary file modified doctrees/how_it_works.doctree
Binary file not shown.
Binary file modified doctrees/index.doctree
Binary file not shown.
Binary file modified doctrees/installation.doctree
Binary file not shown.
Binary file modified doctrees/license.doctree
Binary file not shown.
Binary file modified doctrees/modules.doctree
Binary file not shown.
Binary file modified doctrees/pwlf.doctree
Binary file not shown.
Binary file modified doctrees/requirements.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion pwlf/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.4
0.3.5
2 changes: 1 addition & 1 deletion pwlf/pwlf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1509,7 +1509,7 @@ def r_squared(self):
>>> y = np.random.random(10)
>>> my_pwlf = pwlf.PiecewiseLinFit(x, y)
>>> breaks = my_pwlf.fitfast(3)
>>> rsq = PiecewiseLinFit.r_squared()
>>> rsq = my_pwlf.r_squared()
"""
try:
Expand Down
12 changes: 12 additions & 0 deletions sphinx_build_script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

#!/usr/bin/env bash
# clean docs and doctrees
rm -r docs/*
rm -r doctrees/*
# make the documentation in gitignore folder
cd sphinxdocs
make clean
make html
# copy sphinx build into docs and doctrees
cp -r build/doctrees/* ../doctrees/
cp -r build/html/* ../docs/

0 comments on commit ace41f4

Please sign in to comment.