From 9aadde5739cc72f344fbcada3f6657b72b821c9d Mon Sep 17 00:00:00 2001 From: Jim Rybarski Date: Mon, 11 May 2015 12:54:43 +0000 Subject: [PATCH] deleted unused method --- nd2reader/__init__.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/nd2reader/__init__.py b/nd2reader/__init__.py index e5d4839..4f47559 100644 --- a/nd2reader/__init__.py +++ b/nd2reader/__init__.py @@ -5,7 +5,6 @@ from datetime import datetime import logging from nd2reader.model import Image, ImageSet from nd2reader.parser import Nd2Parser -import numpy as np import re import struct @@ -57,7 +56,7 @@ class Nd2(Nd2Parser): validity = self.metadata['ImageMetadata']['SLxExperiment']['ppNextLevelEx'][''][0]['ppNextLevelEx'][''][0]['pItemValid'] except KeyError: # If none of the channels have been deleted, there is no validity list, so we just make one - validity = [True for i in metadata] + validity = [True for _ in metadata] # Channel information is contained in dictionaries with the keys a0, a1...an where the number # indicates the order in which the channel is stored. So by sorting the dicts alphabetically # we get the correct order. @@ -159,10 +158,6 @@ class Nd2(Nd2Parser): else: return count - @staticmethod - def as_numpy_array(arr): - return np.frombuffer(arr) - @property def _channel_offset(self): """