Skip to content

Commit d7ac5ca

Browse files
committed
Remove unnecessary ensure_unpack calls
1 parent 3fc1731 commit d7ac5ca

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

rawpy/_rawpy.pyx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,6 @@ cdef class RawPy:
576576
the RAW image and postprocessed image.
577577
"""
578578
def __get__(self):
579-
self.ensure_unpack()
580579
cdef libraw_image_sizes_t* s = &self.p.imgdata.sizes
581580

582581
# LibRaw returns 65535 for cleft and ctop in some files - probably those that do not specify them
@@ -599,7 +598,6 @@ cdef class RawPy:
599598
as some use two different greens.
600599
"""
601600
def __get__(self):
602-
self.ensure_unpack()
603601
return self.p.imgdata.idata.colors
604602

605603
property color_desc:
@@ -609,7 +607,6 @@ cdef class RawPy:
609607
There are cameras with two different greens for example.
610608
"""
611609
def __get__(self):
612-
self.ensure_unpack()
613610
return self.p.imgdata.idata.cdesc
614611

615612
cpdef int raw_color(self, int row, int column):
@@ -650,7 +647,6 @@ cdef class RawPy:
650647
:rtype: ndarray of shape (hv,wv)
651648
"""
652649
def __get__(self):
653-
self.ensure_unpack()
654650
s = self.sizes
655651
return self.raw_colors[s.top_margin:s.top_margin+s.height,
656652
s.left_margin:s.left_margin+s.width]

0 commit comments

Comments
 (0)