Skip to content

Commit e867af0

Browse files
removed comments from code chunks since they were redundant with markdown text
1 parent 2a0c708 commit e867af0

6 files changed

+7
-42
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ _site/
33
.jekyll-metadata
44
Gemfile.lock
55
*.gem
6-
archive/
6+
archive/
7+
_ignore/
8+
.ipynb_checkpoints/

_ignore/.ipynb_checkpoints/2019-09-29-rate-representation-checkpoint.ipynb

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -295,11 +295,6 @@
295295
],
296296
"source": [
297297
"#### window method: rectangular\n",
298-
"# a window of 51 gives +- 25 bins to either side of center;\n",
299-
"# since each bin equals samp_pd (2ms) this comes to a window size of 102 ms;\n",
300-
"# after counting spikes over this window, we divide by 51*samp_pd \n",
301-
"# to get the estimated spikes per ms; then we divide further\n",
302-
"# by 1ms (1/1000) to get rate in Hertz\n",
303298
"plt.figure(figsize=(18,4))\n",
304299
"win_pd = int(samp_ms_pd*25+1)\n",
305300
"rect_win_pl = (\n",
@@ -359,14 +354,6 @@
359354
],
360355
"source": [
361356
"#### window method: gaussian\n",
362-
"# the rolling method with win_type = \"gaussian\" produces an\n",
363-
"# unnormalized gaussian sum. The parameter representing std \n",
364-
"# should be adjusted according to the resolution of the sampling\n",
365-
"# rate. Since each addend equals 1, we can apply the \n",
366-
"# normalization after summing (in this case using the unadjusted std).\n",
367-
"# The sum after normalization represents the estimated firing \n",
368-
"# rate at each 2ms bin. To get the rate in Hertz, we divide\n",
369-
"# further by the duration of the bin (2ms)\n",
370357
"plt.figure(figsize=(18,4))\n",
371358
"sigma = 100\n",
372359
"adj_sigma = sigma/samp_ms_pd\n",

_ignore/.ipynb_checkpoints/jupyter_jekyll_workflow-checkpoint.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ Generating the markdown and associated images
1212
2. Copy markdown output new_notebook.md to /_posts
1313
3. Copy image folder /new_notebook_files to /images/name_of_post_wo_date_prefix/ (will need to create name_of_post_wo_date_prefix)
1414
4. Modify markdown script to point to correct location of image files
15-
-- new_notebook.md image pointers needs to be modified to refer to ../../../../images/name_of_post_wo_date_prefix/new_notebook_files/some_image.png
1615
-- example ![png](../../../../images/name_of_post_wo_date_prefix/new_notebook_files/some_image.png)
16+
5. Modify any local file paths that are show explicitly in code chunks to something generic
17+
-- example 'local\path\to\data'
1718

1819
Use Jekyll to convert markdown to HTML
1920
1. bundle exec jekyll serve

_ignore/2019-09-29-rate-representation.ipynb

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -295,11 +295,6 @@
295295
],
296296
"source": [
297297
"#### window method: rectangular\n",
298-
"# a window of 51 gives +- 25 bins to either side of center;\n",
299-
"# since each bin equals samp_pd (2ms) this comes to a window size of 102 ms;\n",
300-
"# after counting spikes over this window, we divide by 51*samp_pd \n",
301-
"# to get the estimated spikes per ms; then we divide further\n",
302-
"# by 1ms (1/1000) to get rate in Hertz\n",
303298
"plt.figure(figsize=(18,4))\n",
304299
"win_pd = int(samp_ms_pd*25+1)\n",
305300
"rect_win_pl = (\n",
@@ -359,14 +354,6 @@
359354
],
360355
"source": [
361356
"#### window method: gaussian\n",
362-
"# the rolling method with win_type = \"gaussian\" produces an\n",
363-
"# unnormalized gaussian sum. The parameter representing std \n",
364-
"# should be adjusted according to the resolution of the sampling\n",
365-
"# rate. Since each addend equals 1, we can apply the \n",
366-
"# normalization after summing (in this case using the unadjusted std).\n",
367-
"# The sum after normalization represents the estimated firing \n",
368-
"# rate at each 2ms bin. To get the rate in Hertz, we divide\n",
369-
"# further by the duration of the bin (2ms)\n",
370357
"plt.figure(figsize=(18,4))\n",
371358
"sigma = 100\n",
372359
"adj_sigma = sigma/samp_ms_pd\n",

_ignore/jupyter_jekyll_workflow.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ Generating the markdown and associated images
1212
2. Copy markdown output new_notebook.md to /_posts
1313
3. Copy image folder /new_notebook_files to /images/name_of_post_wo_date_prefix/ (will need to create name_of_post_wo_date_prefix)
1414
4. Modify markdown script to point to correct location of image files
15-
-- new_notebook.md image pointers needs to be modified to refer to ../../../../images/name_of_post_wo_date_prefix/new_notebook_files/some_image.png
1615
-- example ![png](../../../../images/name_of_post_wo_date_prefix/new_notebook_files/some_image.png)
16+
5. Modify any local file paths that are show explicitly in code chunks to something generic
17+
-- example 'local\path\to\data'
1718

1819
Use Jekyll to convert markdown to HTML
1920
1. bundle exec jekyll serve

_posts/2019-09-29-rate-representation.markdown

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,6 @@ A window of 51 gives 25 bins to either side of center. Since each bin equals 2 m
165165

166166
```python
167167
#### window method: rectangular
168-
# a window of 51 gives +- 25 bins to either side of center;
169-
# since each bin equals samp_pd (2ms) this comes to a window size of 102 ms;
170-
# after counting spikes over this window, we divide by 51*samp_pd
171-
# to get the estimated spikes per ms; then we divide further
172-
# by 1ms (1/1000) to get rate in Hertz
173168
plt.figure(figsize=(18,4))
174169
win_pd = int(samp_ms_pd*25+1)
175170
rect_win_pl = (
@@ -208,14 +203,6 @@ The rolling method with `win_type = 'gaussian'` produces an unnormalized gaussia
208203

209204
```python
210205
#### window method: gaussian
211-
# the rolling method with win_type = "gaussian" produces an
212-
# unnormalized gaussian sum. The parameter representing std
213-
# should be adjusted according to the resolution of the sampling
214-
# rate. Since each addend equals 1, we can apply the
215-
# normalization after summing (in this case using the unadjusted std).
216-
# The sum after normalization represents the estimated firing
217-
# rate at each 2ms bin. To get the rate in Hertz, we divide
218-
# further by the duration of the bin (2ms)
219206
plt.figure(figsize=(18,4))
220207
sigma = 100
221208
adj_sigma = sigma/samp_ms_pd

0 commit comments

Comments
 (0)