Skip to content

Commit

Permalink
deploy: a3cdcf5
Browse files Browse the repository at this point in the history
  • Loading branch information
zssherman committed Sep 6, 2024
1 parent 3a55db5 commit 093c879
Show file tree
Hide file tree
Showing 95 changed files with 4,741 additions and 4,307 deletions.
2 changes: 1 addition & 1 deletion .buildinfo
Original file line number Diff line number Diff line change
@@ -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: c95ca298ca2b89c698a30985be9fd487
config: ae07aa96aaf1f80f889271ebc46ca29a
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.3"
"version": "3.12.5"
}
},
"nbformat": 4,
Expand Down
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion _downloads/8f9868698b6bf55d9900f3cbb41a4e00/plot_psd.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.3"
"version": "3.12.5"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion _downloads/9ca1f6082f15dd49b45cf20b49cb1cce/plot_hk.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.3"
"version": "3.12.5"
}
},
"nbformat": 4,
Expand Down
Binary file modified _images/sphx_glr_plot_hk_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_plot_psd_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_plot_read_sp2b_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
200 changes: 102 additions & 98 deletions _modules/index.html

Large diffs are not rendered by default.

200 changes: 102 additions & 98 deletions _modules/pysp2/io/read_dat.html

Large diffs are not rendered by default.

200 changes: 102 additions & 98 deletions _modules/pysp2/io/read_hk.html

Large diffs are not rendered by default.

200 changes: 102 additions & 98 deletions _modules/pysp2/io/read_ini.html

Large diffs are not rendered by default.

200 changes: 102 additions & 98 deletions _modules/pysp2/io/read_sp2b.html

Large diffs are not rendered by default.

200 changes: 102 additions & 98 deletions _modules/pysp2/io/write_dat.html

Large diffs are not rendered by default.

200 changes: 102 additions & 98 deletions _modules/pysp2/util/DMTGlobals.html

Large diffs are not rendered by default.

200 changes: 102 additions & 98 deletions _modules/pysp2/util/particle_properties.html

Large diffs are not rendered by default.

200 changes: 102 additions & 98 deletions _modules/pysp2/util/peak_fit.html

Large diffs are not rendered by default.

200 changes: 102 additions & 98 deletions _modules/pysp2/vis/plot_wave.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions _sources/sg_execution_times.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Computation times
=================
**00:19.337** total execution time for 3 files **from all galleries**:
**00:18.626** total execution time for 3 files **from all galleries**:

.. container::

Expand All @@ -33,11 +33,11 @@ Computation times
- Time
- Mem (MB)
* - :ref:`sphx_glr_source_auto_examples_plot_psd.py` (``../../examples/plot_psd.py``)
- 00:09.813
- 00:09.439
- 0.0
* - :ref:`sphx_glr_source_auto_examples_plot_read_sp2b.py` (``../../examples/plot_read_sp2b.py``)
- 00:06.726
- 00:06.314
- 0.0
* - :ref:`sphx_glr_source_auto_examples_plot_hk.py` (``../../examples/plot_hk.py``)
- 00:02.798
- 00:02.873
- 0.0
6 changes: 5 additions & 1 deletion _sources/source/auto_examples/plot_hk.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Example for plotting number of particles in housekeeping data
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 2.798 seconds)
**Total running time of the script:** (0 minutes 2.873 seconds)


.. _sphx_glr_download_source_auto_examples_plot_hk.py:
Expand All @@ -97,6 +97,10 @@ Example for plotting number of particles in housekeeping data

:download:`Download Python source code: plot_hk.py <plot_hk.py>`

.. container:: sphx-glr-download sphx-glr-download-zip

:download:`Download zipped: plot_hk.zip <plot_hk.zip>`


.. only:: html

Expand Down
8 changes: 6 additions & 2 deletions _sources/source/auto_examples/plot_psd.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Example on plotting particle concentration data timeseries
Processing record 5000
/home/runner/work/PySP2/PySP2/pysp2/util/peak_fit.py:78: RuntimeWarning: Mean of empty slice
ratio = np.nanmean(
5877 records processed in 6.273894309997559 s
5877 records processed in 5.854121446609497 s
/home/runner/work/PySP2/PySP2/pysp2/util/particle_properties.py:38: RuntimeWarning: All-NaN slice encountered
PkHt_ch0 = np.nanmax(np.stack([input_ds['PkHt_ch0'].values, input_ds['FtAmp_ch0'].values]), axis=0)
/home/runner/work/PySP2/PySP2/pysp2/util/particle_properties.py:39: RuntimeWarning: All-NaN slice encountered
Expand Down Expand Up @@ -86,7 +86,7 @@ Example on plotting particle concentration data timeseries
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 9.813 seconds)
**Total running time of the script:** (0 minutes 9.439 seconds)


.. _sphx_glr_download_source_auto_examples_plot_psd.py:
Expand All @@ -103,6 +103,10 @@ Example on plotting particle concentration data timeseries

:download:`Download Python source code: plot_psd.py <plot_psd.py>`

.. container:: sphx-glr-download sphx-glr-download-zip

:download:`Download zipped: plot_psd.zip <plot_psd.zip>`


.. only:: html

Expand Down
8 changes: 6 additions & 2 deletions _sources/source/auto_examples/plot_read_sp2b.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Example for plotting a wave in a .sp2b file
Processing record 5000
/home/runner/work/PySP2/PySP2/pysp2/util/peak_fit.py:78: RuntimeWarning: Mean of empty slice
ratio = np.nanmean(
5877 records processed in 6.2864134311676025 s
5877 records processed in 5.8552565574646 s
<xarray.Dataset> Size: 41MB
Dimensions: (event_index: 5877, columns: 100)
Dimensions without coordinates: event_index, columns
Expand Down Expand Up @@ -92,7 +92,7 @@ Example for plotting a wave in a .sp2b file
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 6.726 seconds)
**Total running time of the script:** (0 minutes 6.314 seconds)


.. _sphx_glr_download_source_auto_examples_plot_read_sp2b.py:
Expand All @@ -109,6 +109,10 @@ Example for plotting a wave in a .sp2b file

:download:`Download Python source code: plot_read_sp2b.py <plot_read_sp2b.py>`

.. container:: sphx-glr-download sphx-glr-download-zip

:download:`Download zipped: plot_read_sp2b.zip <plot_read_sp2b.zip>`


.. only:: html

Expand Down
8 changes: 4 additions & 4 deletions _sources/source/auto_examples/sg_execution_times.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Computation times
=================
**00:19.337** total execution time for 3 files **from source/auto_examples**:
**00:18.626** total execution time for 3 files **from source/auto_examples**:

.. container::

Expand All @@ -33,11 +33,11 @@ Computation times
- Time
- Mem (MB)
* - :ref:`sphx_glr_source_auto_examples_plot_psd.py` (``plot_psd.py``)
- 00:09.813
- 00:09.439
- 0.0
* - :ref:`sphx_glr_source_auto_examples_plot_read_sp2b.py` (``plot_read_sp2b.py``)
- 00:06.726
- 00:06.314
- 0.0
* - :ref:`sphx_glr_source_auto_examples_plot_hk.py` (``plot_hk.py``)
- 00:02.798
- 00:02.873
- 0.0
104 changes: 89 additions & 15 deletions _sphinx_design_static/design-tabs.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,101 @@
var sd_labels_by_text = {};
// @ts-check

// Extra JS capability for selected tabs to be synced
// The selection is stored in local storage so that it persists across page loads.

/**
* @type {Record<string, HTMLElement[]>}
*/
let sd_id_to_elements = {};
const storageKeyPrefix = "sphinx-design-tab-id-";

/**
* Create a key for a tab element.
* @param {HTMLElement} el - The tab element.
* @returns {[string, string, string] | null} - The key.
*
*/
function create_key(el) {
let syncId = el.getAttribute("data-sync-id");
let syncGroup = el.getAttribute("data-sync-group");
if (!syncId || !syncGroup) return null;
return [syncGroup, syncId, syncGroup + "--" + syncId];
}

/**
* Initialize the tab selection.
*
*/
function ready() {
const li = document.getElementsByClassName("sd-tab-label");
for (const label of li) {
syncId = label.getAttribute("data-sync-id");
if (syncId) {
label.onclick = onLabelClick;
if (!sd_labels_by_text[syncId]) {
sd_labels_by_text[syncId] = [];
// Find all tabs with sync data

/** @type {string[]} */
let groups = [];

document.querySelectorAll(".sd-tab-label").forEach((label) => {
if (label instanceof HTMLElement) {
let data = create_key(label);
if (data) {
let [group, id, key] = data;

// add click event listener
// @ts-ignore
label.onclick = onSDLabelClick;

// store map of key to elements
if (!sd_id_to_elements[key]) {
sd_id_to_elements[key] = [];
}
sd_id_to_elements[key].push(label);

if (groups.indexOf(group) === -1) {
groups.push(group);
// Check if a specific tab has been selected via URL parameter
const tabParam = new URLSearchParams(window.location.search).get(
group
);
if (tabParam) {
console.log(
"sphinx-design: Selecting tab id for group '" +
group +
"' from URL parameter: " +
tabParam
);
window.sessionStorage.setItem(storageKeyPrefix + group, tabParam);
}
}

// Check is a specific tab has been selected previously
let previousId = window.sessionStorage.getItem(
storageKeyPrefix + group
);
if (previousId === id) {
// console.log(
// "sphinx-design: Selecting tab from session storage: " + id
// );
// @ts-ignore
label.previousElementSibling.checked = true;
}
}
sd_labels_by_text[syncId].push(label);
}
}
});
}

function onLabelClick() {
// Activate other inputs with the same sync id.
syncId = this.getAttribute("data-sync-id");
for (label of sd_labels_by_text[syncId]) {
/**
* Activate other tabs with the same sync id.
*
* @this {HTMLElement} - The element that was clicked.
*/
function onSDLabelClick() {
let data = create_key(this);
if (!data) return;
let [group, id, key] = data;
for (const label of sd_id_to_elements[key]) {
if (label === this) continue;
// @ts-ignore
label.previousElementSibling.checked = true;
}
window.localStorage.setItem("sphinx-design-last-tab", syncId);
window.sessionStorage.setItem(storageKeyPrefix + group, id);
}

document.addEventListener("DOMContentLoaded", ready, false);

Large diffs are not rendered by default.

104 changes: 89 additions & 15 deletions _static/design-tabs.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,101 @@
var sd_labels_by_text = {};
// @ts-check

// Extra JS capability for selected tabs to be synced
// The selection is stored in local storage so that it persists across page loads.

/**
* @type {Record<string, HTMLElement[]>}
*/
let sd_id_to_elements = {};
const storageKeyPrefix = "sphinx-design-tab-id-";

/**
* Create a key for a tab element.
* @param {HTMLElement} el - The tab element.
* @returns {[string, string, string] | null} - The key.
*
*/
function create_key(el) {
let syncId = el.getAttribute("data-sync-id");
let syncGroup = el.getAttribute("data-sync-group");
if (!syncId || !syncGroup) return null;
return [syncGroup, syncId, syncGroup + "--" + syncId];
}

/**
* Initialize the tab selection.
*
*/
function ready() {
const li = document.getElementsByClassName("sd-tab-label");
for (const label of li) {
syncId = label.getAttribute("data-sync-id");
if (syncId) {
label.onclick = onLabelClick;
if (!sd_labels_by_text[syncId]) {
sd_labels_by_text[syncId] = [];
// Find all tabs with sync data

/** @type {string[]} */
let groups = [];

document.querySelectorAll(".sd-tab-label").forEach((label) => {
if (label instanceof HTMLElement) {
let data = create_key(label);
if (data) {
let [group, id, key] = data;

// add click event listener
// @ts-ignore
label.onclick = onSDLabelClick;

// store map of key to elements
if (!sd_id_to_elements[key]) {
sd_id_to_elements[key] = [];
}
sd_id_to_elements[key].push(label);

if (groups.indexOf(group) === -1) {
groups.push(group);
// Check if a specific tab has been selected via URL parameter
const tabParam = new URLSearchParams(window.location.search).get(
group
);
if (tabParam) {
console.log(
"sphinx-design: Selecting tab id for group '" +
group +
"' from URL parameter: " +
tabParam
);
window.sessionStorage.setItem(storageKeyPrefix + group, tabParam);
}
}

// Check is a specific tab has been selected previously
let previousId = window.sessionStorage.getItem(
storageKeyPrefix + group
);
if (previousId === id) {
// console.log(
// "sphinx-design: Selecting tab from session storage: " + id
// );
// @ts-ignore
label.previousElementSibling.checked = true;
}
}
sd_labels_by_text[syncId].push(label);
}
}
});
}

function onLabelClick() {
// Activate other inputs with the same sync id.
syncId = this.getAttribute("data-sync-id");
for (label of sd_labels_by_text[syncId]) {
/**
* Activate other tabs with the same sync id.
*
* @this {HTMLElement} - The element that was clicked.
*/
function onSDLabelClick() {
let data = create_key(this);
if (!data) return;
let [group, id, key] = data;
for (const label of sd_id_to_elements[key]) {
if (label === this) continue;
// @ts-ignore
label.previousElementSibling.checked = true;
}
window.localStorage.setItem("sphinx-design-last-tab", syncId);
window.sessionStorage.setItem(storageKeyPrefix + group, id);
}

document.addEventListener("DOMContentLoaded", ready, false);
Loading

0 comments on commit 093c879

Please sign in to comment.