Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions Wrappers/Python/cil/io/ZEISSDataReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,15 @@
# Authors:
# CIL Developers, listed at: https://github.com/TomographicImaging/CIL/blob/master/NOTICE.txt
# Andrew Shartis (UES, Inc.)


from cil.framework import AcquisitionData, AcquisitionGeometry, ImageData, ImageGeometry
from cil.framework.labels import AngleUnit, AcquisitionDimension, ImageDimension
import numpy as np
import os
import logging
import warnings



class ZEISSDataReader(object):
class ZEISSDataReader:

'''
Create a reader for ZEISS files
Expand Down Expand Up @@ -157,7 +155,9 @@ def set_up(self,
self._setup_image_geometry()

def read_metadata(self):
import dxchange
with warnings.catch_warnings():
warnings.filterwarnings("ignore", "pkg_resources is deprecated", UserWarning)
import dxchange
import olefile
# Read one image to get the metadata
_,metadata = dxchange.read_txrm(self.file_name,((0,1),(None),(None)))
Expand Down Expand Up @@ -255,7 +255,9 @@ def read(self):
'''
Reads projections and return Acquisition (TXRM) or Image (TXM) Data container
'''
import dxchange
with warnings.catch_warnings():
warnings.filterwarnings("ignore", "pkg_resources is deprecated", UserWarning)
import dxchange
# Load projections or slices from file
slice_range = None
if self._roi:
Expand Down
Loading