Navigation Menu

Skip to content

Commit

Permalink
purge lxml from test_bcf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sem-geologist committed Oct 5, 2017
1 parent 52d0d90 commit b09cbbe
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions hyperspy/tests/io/test_bcf.py
Expand Up @@ -23,7 +23,6 @@


def test_load_16bit():
lxml = pytest.importorskip("lxml")
# test bcf from hyperspy load function level
# some of functions can be not covered
# it cant use cython parsing implementation, as it is not compiled
Expand All @@ -42,7 +41,6 @@ def test_load_16bit():


def test_load_16bit_reduced():
lxml = pytest.importorskip("lxml")
filename = os.path.join(my_path, 'bcf_data', test_files[0])
print('testing downsampled 16bit bcf...')
s = load(filename, downsample=4, cutoff_at_kV=10)
Expand All @@ -61,7 +59,6 @@ def test_load_16bit_reduced():


def test_load_8bit():
lxml = pytest.importorskip("lxml")
for bcffile in test_files[1:3]:
filename = os.path.join(my_path, 'bcf_data', bcffile)
print('testing simple 8bit bcf...')
Expand All @@ -75,7 +72,6 @@ def test_load_8bit():


def test_hyperspy_wrap():
lxml = pytest.importorskip("lxml")
filename = os.path.join(my_path, 'bcf_data', test_files[0])
print('testing bcf wrap to hyperspy signal...')
hype = load(filename, select_type='spectrum')
Expand Down Expand Up @@ -135,7 +131,6 @@ def test_hyperspy_wrap():


def test_hyperspy_wrap_downsampled():
lxml = pytest.importorskip("lxml")
filename = os.path.join(my_path, 'bcf_data', test_files[0])
print('testing bcf wrap to hyperspy signal...')
hype = load(filename, select_type='spectrum', downsample=5)
Expand All @@ -151,7 +146,6 @@ def test_hyperspy_wrap_downsampled():


def test_fast_bcf():
lxml = pytest.importorskip("lxml")
from hyperspy.io_plugins import bcf

for bcffile in test_files:
Expand All @@ -167,7 +161,6 @@ def test_fast_bcf():


def test_get_mode():
lxml = pytest.importorskip("lxml")
filename = os.path.join(my_path, 'bcf_data', test_files[0])
s = load(filename, select_type='spectrum', instrument='SEM')
assert s.metadata.Signal.signal_type == "EDS_SEM"
Expand Down

0 comments on commit b09cbbe

Please sign in to comment.