From 963310178d0e28e50ca4fc9dd764ac91fc0089ac Mon Sep 17 00:00:00 2001 From: Jim Rybarski Date: Fri, 9 Oct 2015 22:46:37 -0500 Subject: [PATCH] fixed merge conflict and docs --- CHANGELOG.md | 4 +--- nd2reader/interface.py | 9 --------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f1c6ffe..975412a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ -<<<<<<< HEAD ## [1.1.2] - 2015-10-09 ### ADDED - `Image` objects now have a `frame_number` attribute. +- `Nd2` can be used as a context manager. ### CHANGED - `Image` objects now directly subclass Numpy arrays. @@ -11,8 +11,6 @@ - The `data` attribute is no longer needed since `Image` is now a Numpy array. - The `image_sets` iterator will be removed in the near future. You should implement this yourself. -======= ->>>>>>> origin/master ## [1.1.1] - 2015-09-02 ### FIXED - Images returned by indexing would sometimes be skipped when the file contained multiple channels diff --git a/nd2reader/interface.py b/nd2reader/interface.py index 9f3403b..0b9afe3 100644 --- a/nd2reader/interface.py +++ b/nd2reader/interface.py @@ -50,15 +50,6 @@ class Nd2(object): """ Allows slicing ND2s. - >>> nd2 = Nd2("my_images.nd2") - >>> image = nd2[16] # gets 17th frame - >>> for image in nd2[100:200]: # iterate over the 100th to 200th images - >>> do_something(image) - >>> for image in nd2[::-1]: # iterate backwards - >>> do_something(image) - >>> for image in nd2[37:422:17]: # do something super weird if you really want to - >>> do_something(image) - :type item: int or slice :rtype: nd2reader.model.Image() or generator