From 1daac4a2d9a7f535f8eb7bf914ec5931fcc2ce87 Mon Sep 17 00:00:00 2001 From: Jim Rybarski Date: Sat, 23 May 2015 18:33:53 +0000 Subject: [PATCH] #27 syntax highlighting --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 709db26..9f7532c 100644 --- a/README.md +++ b/README.md @@ -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: -``` +```python import nd2reader nd2 = nd2reader.Nd2("/path/to/my_images.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. -``` +```python >>> import nd2reader >>> nd2 = nd2reader.Nd2("/path/to/my_images.nd2") >>> 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. -``` +```python >>> image 1280x800 (HxW)