Skip to content

Commit

Permalink
Merge d855285 into 3727870
Browse files Browse the repository at this point in the history
  • Loading branch information
licode committed Apr 2, 2018
2 parents 3727870 + d855285 commit 3e60acb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion csxtools/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,10 @@ def get_images_to_3D(images, dtype=None):

def _get_images(header, tag, roi=None):
t = ttime.time()
images = header.db.get_images(header, tag)
if isinstance(header, (list, tuple)):
images = header[0].data(tag)
else:
images = header.data(tag)
t = ttime.time() - t
logger.info("Took %.3f seconds to read data using get_images", t)

Expand Down

0 comments on commit 3e60acb

Please sign in to comment.