Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
nomad-FAIR
Commits
80f60435
Commit
80f60435
authored
Dec 21, 2021
by
Lauri Himanen
Browse files
Fixed issue in EELS tests.
parent
0e5472c8
Pipeline
#118349
passed with stages
in 27 minutes and 6 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/normalizing/test_method.py
View file @
80f60435
...
...
@@ -90,10 +90,6 @@ def test_method_gw(gw):
def
test_method_eels
(
eels
):
method
=
eels
.
results
.
method
assert
method
.
method_name
==
"EELS"
assert
method
.
experiment
.
eels
.
resolution
.
to
(
ureg
.
electron_volt
).
magnitude
==
pytest
.
approx
(
1
)
assert
method
.
experiment
.
eels
.
min_energy
.
to
(
ureg
.
electron_volt
).
magnitude
==
pytest
.
approx
(
100
)
assert
method
.
experiment
.
eels
.
max_energy
.
to
(
ureg
.
electron_volt
).
magnitude
==
pytest
.
approx
(
200
)
assert
method
.
experiment
.
eels
.
detector_type
==
"Quantum GIF"
@
pytest
.
mark
.
parametrize
(
'entry, method_identified'
,
[
...
...
tests/normalizing/test_properties.py
View file @
80f60435
...
...
@@ -29,8 +29,13 @@ from .conftest import (
def
test_eels
(
eels
):
spectra
=
eels
.
results
.
properties
.
spectroscopy
.
eels
assert
spectra
.
n_values
==
spectra
.
count
.
shape
[
0
]
==
spectra
.
energy
.
shape
[
0
]
assert
len
(
eels
.
results
.
properties
.
spectroscopy
.
eels
)
==
1
eels_data
=
eels
.
results
.
properties
.
spectroscopy
.
eels
[
0
]
assert
eels_data
.
resolution
.
to
(
ureg
.
electron_volt
).
magnitude
==
pytest
.
approx
(
1
)
assert
eels_data
.
min_energy
.
to
(
ureg
.
electron_volt
).
magnitude
==
pytest
.
approx
(
100
)
assert
eels_data
.
max_energy
.
to
(
ureg
.
electron_volt
).
magnitude
==
pytest
.
approx
(
200
)
assert
eels_data
.
detector_type
==
"Quantum GIF"
assert
eels_data
.
spectrum
.
n_values
==
eels_data
.
spectrum
.
count
.
shape
[
0
]
==
eels_data
.
spectrum
.
energy
.
shape
[
0
]
def
test_bulk_modulus
(
mechanical
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment