Browse Source

#27 syntax highlighting

zolfa-add_slices_loading
Jim Rybarski 10 years ago
parent
commit
1daac4a2d9
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      README.md

+ 3
- 3
README.md View File

@ -22,7 +22,7 @@ If you want to install via git, clone the repo and run:
For most cases, you'll just want to iterate over each image: For most cases, you'll just want to iterate over each image:
```
```python
import nd2reader import nd2reader
nd2 = nd2reader.Nd2("/path/to/my_images.nd2") nd2 = nd2reader.Nd2("/path/to/my_images.nd2")
for image in nd2: for image in nd2:
@ -57,7 +57,7 @@ other minute, but acquire bright field images every minute, `get_image` will ret
`Image` objects provide several pieces of useful data. `Image` objects provide several pieces of useful data.
```
```python
>>> import nd2reader >>> import nd2reader
>>> nd2 = nd2reader.Nd2("/path/to/my_images.nd2") >>> nd2 = nd2reader.Nd2("/path/to/my_images.nd2")
>>> image = nd2.get_image(14, 2, "GFP", 1) >>> image = nd2.get_image(14, 2, "GFP", 1)
@ -81,7 +81,7 @@ array([[1809, 1783, 1830, ..., 1923, 1920, 1914],
You can also get a quick summary of image data. You can also get a quick summary of image data.
```
```python
>>> image >>> image
<ND2 Image> <ND2 Image>
1280x800 (HxW) 1280x800 (HxW)


Loading…
Cancel
Save