Skip to content

Commit

Permalink
dhhagan published a site update
Browse files Browse the repository at this point in the history
  • Loading branch information
dhhagan committed Apr 1, 2022
1 parent 0cf23b4 commit b768b3d
Show file tree
Hide file tree
Showing 73 changed files with 3,099 additions and 1,792 deletions.
1 change: 1 addition & 0 deletions _sources/api.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ the Usage section for instructions on how to use them.
:toctree: generated/

endpoints.data.Data.list
endpoints.data.Data.bydate
endpoints.data.Data.get


Expand Down
6 changes: 6 additions & 0 deletions _sources/generated/quantaq.endpoints.data.Data.bydate.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
quantaq.endpoints.data.Data.bydate
==================================

.. currentmodule:: quantaq.endpoints.data

.. automethod:: Data.bydate
39 changes: 38 additions & 1 deletion _sources/usage.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ between two dates:
.. code-block:: python
>>> from quantaq.utils import to_dataframe
>>> data = client.data.list(sn="SN000-000", start="2020-01-01", stop="2020-01-03")
>>> data = client.data.list(sn="SN000-000", start="2020-01-01 00:00", stop="2020-01-01 03:30")
>>> data = to_dataframe(data)
>>> print (data)
Expand All @@ -175,6 +175,11 @@ While you don't necessarily have to define either a start or stop point, it is h
recommended. If you don't, the response can take some time as it is iterating through
a large number of API requests to retrieve the paginated results.

.. tip::

It is best to use this endpoint for querying less than one day of data. If trying to return
large chunks of data, use the `bydate` function detailed below.


List All Raw Data for a Device
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand All @@ -188,6 +193,38 @@ in your request:
>>> print (data)
Retrieve Large Chunks of Data for a Device
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.. attention::

This endpoint was added with release 1.1.0 on March 31st, 2022.


To retrieve large chunks of data, it is best to use the `bydate` function.

.. code-block:: python
>>> data = client.data.bydate(sn='SN000-000', date='2022-01-01')
>>> data = to_dataframe(data)
>>> print (data)
This will retrieve all available all available data for a given device on a given date. To
get data for many dates, simply iterate over all of the dates:

.. code-block:: python
>>> import pandas as pd
>>> df = []
>>> for each in pd.date_range(start='2022-01-01', end='2022-01-15'):
>>> df.append(
>>> to_dataframe(client.data.bydate(sn='SN000-000', date=str(each.date())))
>>> )
>>> df = pd.concat(df)
>>> print (df.info())
Limit Your Data Requests
^^^^^^^^^^^^^^^^^^^^^^^^

Expand Down
86 changes: 56 additions & 30 deletions _static/basic.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* Sphinx stylesheet -- basic theme.
*
* :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
* :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
Expand All @@ -15,6 +15,12 @@ div.clearer {
clear: both;
}

div.section::after {
display: block;
content: '';
clear: left;
}

/* -- relbar ---------------------------------------------------------------- */

div.related {
Expand Down Expand Up @@ -271,25 +277,25 @@ p.rubric {
font-weight: bold;
}

img.align-left, .figure.align-left, object.align-left {
img.align-left, figure.align-left, .figure.align-left, object.align-left {
clear: left;
float: left;
margin-right: 1em;
}

img.align-right, .figure.align-right, object.align-right {
img.align-right, figure.align-right, .figure.align-right, object.align-right {
clear: right;
float: right;
margin-left: 1em;
}

img.align-center, .figure.align-center, object.align-center {
img.align-center, figure.align-center, .figure.align-center, object.align-center {
display: block;
margin-left: auto;
margin-right: auto;
}

img.align-default, .figure.align-default {
img.align-default, figure.align-default, .figure.align-default {
display: block;
margin-left: auto;
margin-right: auto;
Expand All @@ -313,7 +319,8 @@ img.align-default, .figure.align-default {

/* -- sidebars -------------------------------------------------------------- */

div.sidebar {
div.sidebar,
aside.sidebar {
margin: 0 0 0.5em 1em;
border: 1px solid #ddb;
padding: 7px;
Expand All @@ -328,8 +335,8 @@ p.sidebar-title {
font-weight: bold;
}

div.admonition, div.topic, pre, div[class|="highlight"] {
clear: both;
div.admonition, div.topic, blockquote {
clear: left;
}

/* -- topics ---------------------------------------------------------------- */
Expand All @@ -338,7 +345,6 @@ div.topic {
border: 1px solid #ccc;
padding: 7px;
margin: 10px 0 10px 0;
overflow-x: auto;
}

p.topic-title {
Expand All @@ -353,7 +359,6 @@ div.admonition {
margin-top: 10px;
margin-bottom: 10px;
padding: 7px;
overflow-x: auto;
}

div.admonition dt {
Expand All @@ -373,11 +378,22 @@ div.body p.centered {
/* -- content of sidebars/topics/admonitions -------------------------------- */

div.sidebar > :last-child,
aside.sidebar > :last-child,
div.topic > :last-child,
div.admonition > :last-child {
margin-bottom: 0;
}

div.sidebar::after,
aside.sidebar::after,
div.topic::after,
div.admonition::after,
blockquote::after {
display: block;
content: '';
clear: both;
}

/* -- tables ---------------------------------------------------------------- */

table.docutils {
Expand Down Expand Up @@ -442,20 +458,22 @@ td > :last-child {

/* -- figures --------------------------------------------------------------- */

div.figure {
div.figure, figure {
margin: 0.5em;
padding: 0.5em;
}

div.figure p.caption {
div.figure p.caption, figcaption {
padding: 0.3em;
}

div.figure p.caption span.caption-number {
div.figure p.caption span.caption-number,
figcaption span.caption-number {
font-style: italic;
}

div.figure p.caption span.caption-text {
div.figure p.caption span.caption-text,
figcaption span.caption-text {
}

/* -- field list styles ----------------------------------------------------- */
Expand Down Expand Up @@ -513,28 +531,31 @@ ol.upperroman {
list-style: upper-roman;
}

ol > li:first-child > :first-child,
ul > li:first-child > :first-child {
:not(li) > ol > li:first-child > :first-child,
:not(li) > ul > li:first-child > :first-child {
margin-top: 0px;
}

ol ol > li:first-child > :first-child,
ol ul > li:first-child > :first-child,
ul ol > li:first-child > :first-child,
ul ul > li:first-child > :first-child {
margin-top: revert;
:not(li) > ol > li:last-child > :last-child,
:not(li) > ul > li:last-child > :last-child {
margin-bottom: 0px;
}

ol > li:last-child > :last-child,
ul > li:last-child > :last-child {
margin-bottom: 0px;
ol.simple ol p,
ol.simple ul p,
ul.simple ol p,
ul.simple ul p {
margin-top: 0;
}

ol ol > li:last-child > :last-child,
ol ul > li:last-child > :last-child,
ul ol > li:last-child > :last-child,
ul ul > li:last-child > :last-child {
margin-bottom: revert;
ol.simple > li:not(:first-child) > p,
ul.simple > li:not(:first-child) > p {
margin-top: 0;
}

ol.simple p,
ul.simple p {
margin-bottom: 0;
}

dl.footnote > dt,
Expand Down Expand Up @@ -677,14 +698,18 @@ pre {
overflow-y: hidden; /* fixes display issues on Chrome browsers */
}

pre, div[class*="highlight-"] {
clear: both;
}

span.pre {
-moz-hyphens: none;
-ms-hyphens: none;
-webkit-hyphens: none;
hyphens: none;
}

div[class^="highlight-"] {
div[class*="highlight-"] {
margin: 1em 0;
}

Expand Down Expand Up @@ -744,6 +769,7 @@ div.code-block-caption code {
}

table.highlighttable td.linenos,
span.linenos,
div.doctest > div.highlight span.gp { /* gp: Generic.Prompt */
user-select: none;
}
Expand Down
14 changes: 10 additions & 4 deletions _static/doctools.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* Sphinx JavaScript utilities for all documentation.
*
* :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
* :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
Expand All @@ -29,9 +29,14 @@ if (!window.console || !console.firebug) {

/**
* small helper function to urldecode strings
*
* See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#Decoding_query_parameters_from_a_URL
*/
jQuery.urldecode = function(x) {
return decodeURIComponent(x).replace(/\+/g, ' ');
if (!x) {
return x
}
return decodeURIComponent(x.replace(/\+/g, ' '));
};

/**
Expand Down Expand Up @@ -285,9 +290,10 @@ var Documentation = {
initOnKeyListeners: function() {
$(document).keydown(function(event) {
var activeElementType = document.activeElement.tagName;
// don't navigate when in search box or textarea
// don't navigate when in search box, textarea, dropdown or button
if (activeElementType !== 'TEXTAREA' && activeElementType !== 'INPUT' && activeElementType !== 'SELECT'
&& !event.altKey && !event.ctrlKey && !event.metaKey && !event.shiftKey) {
&& activeElementType !== 'BUTTON' && !event.altKey && !event.ctrlKey && !event.metaKey
&& !event.shiftKey) {
switch (event.keyCode) {
case 37: // left
var prevHref = $('link[rel="prev"]').prop('href');
Expand Down
2 changes: 1 addition & 1 deletion _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: '1.0.2-alpha.0',
VERSION: '1.1.0',
LANGUAGE: 'None',
COLLAPSE_INDEX: false,
BUILDER: 'html',
Expand Down
Binary file removed _static/fonts/FontAwesome.otf
Binary file not shown.
Binary file added _static/fonts/Inconsolata-Bold.ttf
Binary file not shown.
Binary file added _static/fonts/Inconsolata-Regular.ttf
Binary file not shown.
Binary file added _static/fonts/Inconsolata.ttf
Binary file not shown.
Binary file added _static/fonts/Lato-Bold.ttf
Binary file not shown.
Binary file added _static/fonts/Lato-Regular.ttf
Binary file not shown.
Binary file removed _static/fonts/Roboto-Slab-Bold.woff
Binary file not shown.
Binary file removed _static/fonts/Roboto-Slab-Bold.woff2
Binary file not shown.
Binary file removed _static/fonts/Roboto-Slab-Light.woff
Binary file not shown.
Binary file removed _static/fonts/Roboto-Slab-Light.woff2
Binary file not shown.
Binary file removed _static/fonts/Roboto-Slab-Regular.woff
Binary file not shown.
Binary file removed _static/fonts/Roboto-Slab-Regular.woff2
Binary file not shown.
Binary file removed _static/fonts/Roboto-Slab-Thin.woff
Binary file not shown.
Binary file removed _static/fonts/Roboto-Slab-Thin.woff2
Binary file not shown.
Binary file added _static/fonts/RobotoSlab-Bold.ttf
Binary file not shown.
Binary file added _static/fonts/RobotoSlab-Regular.ttf
Binary file not shown.
Binary file removed _static/fonts/lato-bold-italic.woff
Binary file not shown.
Binary file removed _static/fonts/lato-bold-italic.woff2
Binary file not shown.
Binary file removed _static/fonts/lato-bold.woff
Binary file not shown.
Binary file removed _static/fonts/lato-bold.woff2
Binary file not shown.
Binary file removed _static/fonts/lato-normal-italic.woff
Binary file not shown.
Binary file removed _static/fonts/lato-normal-italic.woff2
Binary file not shown.
Binary file removed _static/fonts/lato-normal.woff
Binary file not shown.
Binary file removed _static/fonts/lato-normal.woff2
Binary file not shown.
6 changes: 3 additions & 3 deletions _static/language_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@
* This script contains the language-specific data used by searchtools.js,
* namely the list of stopwords, stemmer, scorer and splitter.
*
* :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
* :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/

var stopwords = ["a","and","are","as","at","be","but","by","for","if","in","into","is","it","near","no","not","of","on","or","such","that","the","their","then","there","these","they","this","to","was","will","with"];


/* Non-minified version JS is _stemmer.js if file is provided */
/* Non-minified version is copied as a separate JS file, is available */

/**
* Porter Stemmer
*/
Expand Down Expand Up @@ -199,7 +200,6 @@ var Stemmer = function() {




var splitChars = (function() {
var result = {};
var singles = [96, 180, 187, 191, 215, 247, 749, 885, 903, 907, 909, 930, 1014, 1648,
Expand Down
Loading

0 comments on commit b768b3d

Please sign in to comment.