Skip to content

Commit

Permalink
reworked find events function again
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrockhill committed May 11, 2021
1 parent d350e31 commit fbf6bb3
Show file tree
Hide file tree
Showing 139 changed files with 1,235 additions and 1,342 deletions.
2 changes: 1 addition & 1 deletion docs/.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: 8fa198bde09b916326d48cfe1b849e55
config: c5b9e2f24a174bb586a0c877268c62da
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
# your own input depending on whether you want to keep the events or not.

with mock.patch('builtins.input', return_value='y'):
pd_parser.parse_pd(fname, pd_event_name='Stim On', beh=beh,
pd_parser.parse_pd(fname, pd_event_name='Stim On', beh=beh, max_len=1.5,
pd_ch_names=['pd'], beh_key='time', recover=True)

###############################################################################
Expand All @@ -109,8 +109,8 @@
# following the instructions.

# reject the two false deflections in the middle of the second event
with mock.patch('builtins.input', side_effect=['y'] + ['n'] * 2 + ['y'] * 2):
pd_parser.add_pd_off_events(fname, off_event_name='Stim Off')
with mock.patch('builtins.input', side_effect=['n'] * 2 + ['y'] * 2):
pd_parser.add_pd_off_events(fname, max_len=1.5, off_event_name='Stim Off')

###############################################################################
# Check the results
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
},
"outputs": [],
"source": [
"with mock.patch('builtins.input', return_value='y'):\n pd_parser.parse_pd(fname, pd_event_name='Stim On', beh=beh,\n pd_ch_names=['pd'], beh_key='time', recover=True)"
"with mock.patch('builtins.input', return_value='y'):\n pd_parser.parse_pd(fname, pd_event_name='Stim On', beh=beh, max_len=1.5,\n pd_ch_names=['pd'], beh_key='time', recover=True)"
]
},
{
Expand All @@ -80,7 +80,7 @@
},
"outputs": [],
"source": [
"# reject the two false deflections in the middle of the second event\nwith mock.patch('builtins.input', side_effect=['y'] + ['n'] * 2 + ['y'] * 2):\n pd_parser.add_pd_off_events(fname, off_event_name='Stim Off')"
"# reject the two false deflections in the middle of the second event\nwith mock.patch('builtins.input', side_effect=['n'] * 2 + ['y'] * 2):\n pd_parser.add_pd_off_events(fname, max_len=1.5, off_event_name='Stim Off')"
]
},
{
Expand Down
Binary file not shown.
Binary file modified docs/_images/event_diffs.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 docs/_images/excluded_events.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 docs/_images/sphx_glr_plot_recover_events_002.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 docs/_images/sphx_glr_plot_recover_events_003.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 docs/_images/sphx_glr_plot_recover_events_004.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 docs/_images/sphx_glr_plot_recover_events_005.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 docs/_images/sphx_glr_plot_recover_events_006.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 docs/_images/sphx_glr_plot_recover_events_007.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 docs/_images/sphx_glr_plot_recover_events_008.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 docs/_images/sphx_glr_plot_recover_events_009.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 docs/_images/sphx_glr_plot_recover_events_010.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 docs/_images/sphx_glr_plot_recover_events_011.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions docs/_modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Overview: module code &#8212; pd-parser v0.5 documentation</title>
<title>Overview: module code &#8212; pd-parser v0.6 documentation</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/bootstrap-sphinx.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="../_static/gallery.css" />
Expand Down Expand Up @@ -40,7 +40,7 @@
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">
pd-parser v0.5</a>
pd-parser v0.6</a>
<span class="navbar-text navbar-version pull-left"><b></b></span>
</div>

Expand Down
179 changes: 100 additions & 79 deletions docs/_modules/parse_pd.html

Large diffs are not rendered by default.

49 changes: 22 additions & 27 deletions docs/_sources/auto_examples/plot_recover_events.rst.txt

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/_sources/auto_examples/sg_execution_times.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

Computation times
=================
**00:38.796** total execution time for **auto_examples** files:
**00:35.956** total execution time for **auto_examples** files:

+-------------------------------------------------------------------------------------------+-----------+--------+
| :ref:`sphx_glr_auto_examples_plot_recover_events.py` (``plot_recover_events.py``) | 00:38.796 | 0.0 MB |
| :ref:`sphx_glr_auto_examples_plot_recover_events.py` (``plot_recover_events.py``) | 00:35.956 | 0.0 MB |
+-------------------------------------------------------------------------------------------+-----------+--------+
| :ref:`sphx_glr_auto_examples_plot_find_audio_events.py` (``plot_find_audio_events.py``) | 00:00.000 | 0.0 MB |
+-------------------------------------------------------------------------------------------+-----------+--------+
Expand Down
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: 'v0.5',
VERSION: 'v0.6',
LANGUAGE: 'None',
COLLAPSE_INDEX: false,
BUILDER: 'html',
Expand Down
4 changes: 2 additions & 2 deletions docs/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>API Documentation &#8212; pd-parser v0.5 documentation</title>
<title>API Documentation &#8212; pd-parser v0.6 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/bootstrap-sphinx.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="_static/gallery.css" />
Expand Down Expand Up @@ -40,7 +40,7 @@
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">
pd-parser v0.5</a>
pd-parser v0.6</a>
<span class="navbar-text navbar-version pull-left"><b></b></span>
</div>

Expand Down
4 changes: 2 additions & 2 deletions docs/auto_examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Examples Gallery &#8212; pd-parser v0.5 documentation</title>
<title>Examples Gallery &#8212; pd-parser v0.6 documentation</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/bootstrap-sphinx.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="../_static/gallery.css" />
Expand Down Expand Up @@ -40,7 +40,7 @@
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">
pd-parser v0.5</a>
pd-parser v0.6</a>
<span class="navbar-text navbar-version pull-left"><b></b></span>
</div>

Expand Down
4 changes: 2 additions & 2 deletions docs/auto_examples/plot_find_audio_events.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Use Audio to Align Video Data &#8212; pd-parser v0.5 documentation</title>
<title>Use Audio to Align Video Data &#8212; pd-parser v0.6 documentation</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/bootstrap-sphinx.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="../_static/gallery.css" />
Expand Down Expand Up @@ -40,7 +40,7 @@
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">
pd-parser v0.5</a>
pd-parser v0.6</a>
<span class="navbar-text navbar-version pull-left"><b></b></span>
</div>

Expand Down
4 changes: 2 additions & 2 deletions docs/auto_examples/plot_find_pd_events.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Find Photodiode Events &#8212; pd-parser v0.5 documentation</title>
<title>Find Photodiode Events &#8212; pd-parser v0.6 documentation</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/bootstrap-sphinx.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="../_static/gallery.css" />
Expand Down Expand Up @@ -40,7 +40,7 @@
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">
pd-parser v0.5</a>
pd-parser v0.6</a>
<span class="navbar-text navbar-version pull-left"><b></b></span>
</div>

Expand Down
4 changes: 2 additions & 2 deletions docs/auto_examples/plot_find_pd_on_and_off.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Find Photodiode On and Off Events &#8212; pd-parser v0.5 documentation</title>
<title>Find Photodiode On and Off Events &#8212; pd-parser v0.6 documentation</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/bootstrap-sphinx.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="../_static/gallery.css" />
Expand Down Expand Up @@ -40,7 +40,7 @@
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">
pd-parser v0.5</a>
pd-parser v0.6</a>
<span class="navbar-text navbar-version pull-left"><b></b></span>
</div>

Expand Down
Loading

0 comments on commit fbf6bb3

Please sign in to comment.