Skip to content

Commit

Permalink
Fix various markup issues
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanv committed May 9, 2017
1 parent 2747c5c commit 17daa62
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 18 deletions.
8 changes: 0 additions & 8 deletions CONTRIBUTING.md
Expand Up @@ -2,14 +2,6 @@


## Markup quirks ## Markup quirks


- Lines cannot start with "$", e.g.

```
$X$ is a matrix
```

won't compile, so move the "$X" to the end of the previous line.

- Lines cannot have trailing spaces - Lines cannot have trailing spaces


- Do not combine markdown images, i.e., `![caption](image.png)`, - Do not combine markdown images, i.e., `![caption](image.png)`,
Expand Down
4 changes: 2 additions & 2 deletions markdown/ch6.markdown
Expand Up @@ -194,7 +194,7 @@ How do you draw nodes and edges in such a way that you don't get a complete
mess such as this one? mess such as this one?


<img src="https://upload.wikimedia.org/wikipedia/commons/9/90/Visualization_of_wiki_structure_using_prefuse_visualization_package.png"/> <img src="https://upload.wikimedia.org/wikipedia/commons/9/90/Visualization_of_wiki_structure_using_prefuse_visualization_package.png"/>
<!-- caption text="Visualization of wikipedia structure. Created by Chris Davis. [CC-BY-SA-3.0](https://commons.wikimedia.org/wiki/GNU_Free_Documentation_License)." --> <!-- caption text="Visualization of wikipedia structure. Created by Chris Davis and released under CC-BY-SA-3.0 (https://commons.wikimedia.org/wiki/GNU_Free_Documentation_License)." -->




One way is to put nodes that share many edges close together. It turns out One way is to put nodes that share many edges close together. It turns out
Expand Down Expand Up @@ -1085,5 +1085,5 @@ np.corrcoef([pagerank, pagerank_power, pagerank_power2])
## Concluding remarks ## Concluding remarks


The field of linear algebra is far too broad to adequately cover in a chapter, The field of linear algebra is far too broad to adequately cover in a chapter,
but we hope that we have given you a taste of the power of it here, and of but this chapter gave you a glimpse into its power, and of
the way Python, NumPy, and SciPy make its elegant algorithms accessible. the way Python, NumPy, and SciPy make its elegant algorithms accessible.
6 changes: 3 additions & 3 deletions markdown/ch7.markdown
Expand Up @@ -652,9 +652,9 @@ different images. When the images are perfectly aligned, any object of uniform
color will create a large correlation between the shades of the different color will create a large correlation between the shades of the different
component channels, and a correspondingly large NMI value. In a sense, NMI component channels, and a correspondingly large NMI value. In a sense, NMI
measures how easy it would be to predict a pixel value of one image given the measures how easy it would be to predict a pixel value of one image given the
value of the corresponding pixel in the other. It was defined in the paper: value of the corresponding pixel in the other. It was defined in the paper
Studholme, C., Hill, D.L.G., Hawkes, D.J.: An Overlap Invariant Entropy Measure "Studholme, C., Hill, D.L.G., Hawkes, D.J., *An Overlap Invariant Entropy Measure
of 3D Medical Image Alignment. Patt. Rec. 32, 71–86 (1999): of 3D Medical Image Alignment*, Patt. Rec. 32, 71–86 (1999)":


$$I(X, Y) = \frac{H(X) + H(Y)}{H(X, Y)},$$ $$I(X, Y) = \frac{H(X) + H(Y)}{H(X, Y)},$$


Expand Down
7 changes: 3 additions & 4 deletions markdown/ch8.markdown
Expand Up @@ -330,7 +330,7 @@ def is_sequence(line):
def reads_to_kmers(reads_iter, k=7): def reads_to_kmers(reads_iter, k=7):
for read in reads_iter: for read in reads_iter:
for start in range(0, len(read) - k): for start in range(0, len(read) - k):
yield read[start : start + k] # note yeild, so this is a generator yield read[start : start + k] # note yield, so this is a generator


def kmer_counter(kmer_iter): def kmer_counter(kmer_iter):
counts = {} counts = {}
Expand Down Expand Up @@ -875,6 +875,5 @@ analysis, think about whether you can do it streaming. If you can, just do it
from the beginning. Your future self will thank you. from the beginning. Your future self will thank you.
Doing it later is harder, and results in things like this: Doing it later is harder, and results in things like this:


<img src="https://pbs.twimg.com/media/CDxc6HTVIAAsiFO.jpg" alt="TODO"/> ![TODOs in history. Comic by Manu Cornet, used with permission](https://pbs.twimg.com/media/CDxc7HTVIAAsiFO.jpg)
<!-- caption text="TODOs in history. Comic by Manu Cornet, used with
permission" -->
2 changes: 1 addition & 1 deletion markdown/epilogue.markdown
Expand Up @@ -6,7 +6,7 @@
Our main goal with this book was to promote elegant uses of the NumPy and SciPy Our main goal with this book was to promote elegant uses of the NumPy and SciPy
libraries. While teaching you how to do effective scientific analysis with SciPy, libraries. While teaching you how to do effective scientific analysis with SciPy,
We hope to have inspired in you the feeling that quality code is something we hope to have inspired in you the feeling that quality code is something
worth striving for. worth striving for.


## Where to next? ## Where to next?
Expand Down

0 comments on commit 17daa62

Please sign in to comment.