Skip to content

Commit

Permalink
Update test_emd_reader.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gduscher committed Sep 29, 2023
1 parent 0a44a8b commit fa2ee7e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/readers/microscopy/em/tem/test_emd_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import sidpy

sys.path.insert(0, "../../../../../SciFiReaders/")
from SciFiReaders import EMDReader
import SciFiReaders
print(SciFiReaders.__version__)

data_path = 'https://raw.githubusercontent.com/pycroscopy/SciFiDatasets/main/data/microscopy/em/tem/'
Expand All @@ -24,14 +24,14 @@ class TestEMDReader(unittest.TestCase):

def test_data_available(self):
file_name = wget.download(data_path + '/EMDReader_Spectrum_FEI.emd')
emd_reader = EMDReader(file_name)
emd_reader = SciFiReaders.EMDReader(file_name)

self.assertIsInstance(emd_reader, sidpy.Reader)
emd_reader.close()

def test_read_spectrum(self):
file_name = wget.download(data_path + 'EMDReader_Spectrum_FEI.emd')
emd_reader = EMDReader(file_name)
emd_reader = SciFiReaders.EMDReader(file_name)
datasets = emd_reader.read()
emd_reader.close()

Expand Down Expand Up @@ -278,7 +278,7 @@ def test_read_spectrum(self):

def test_read_image(self):
file_name = wget.download(data_path + '/EMDReader_Image_FEI.emd')
emd_reader = EMDReader(file_name)
emd_reader = SciFiReaders.EMDReader(file_name)
datasets = emd_reader.read()
emd_reader.close()

Expand All @@ -304,7 +304,7 @@ def test_read_image(self):

def test_read_spectrum_image(self):
file_name = wget.download(data_path + '/EMDReader_SpectrumImage_Si.emd')
emd_reader = EMDReader(file_name)
emd_reader = SciFiReaders.EMDReader(file_name)
datasets = emd_reader.read()
emd_reader.close()

Expand Down

0 comments on commit fa2ee7e

Please sign in to comment.