Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MPI-Dortmund
sphire
eman2mirror
Commits
764e7a69
Commit
764e7a69
authored
Jun 27, 2022
by
shadow_walker
Browse files
remove negative index read test for spider, not valid with new syntax file read
parent
5d4ce66d
Changes
1
Hide whitespace changes
Inline
Side-by-side
rt/pyem/test_imageio.py
View file @
764e7a69
...
...
@@ -354,20 +354,6 @@ class TestSpiderIO(ImageIOTester):
e
.
process_inplace
(
'testimage.sinewave'
,
{
'wavelength'
:
20
})
e
.
set_attr
(
'SPIDER.title'
,
'The fourth image in the stack'
)
e
.
write_image
(
'test.spi'
,
3
)
f
=
EMData
()
#read the overall herder
f
.
read_image
(
'test.spi'
,
-
1
,
True
)
d
=
f
.
get_attr_dict
()
img_num
=
d
[
'SPIDER.maxim'
]
#read the individual image from a stack
for
i
in
range
(
img_num
):
f
.
read_image
(
'test.spi'
,
i
)
self
.
assertEqual
(
f
.
is_complex
(),
False
)
self
.
assertEqual
(
f
.
get_xsize
(),
100
)
self
.
assertEqual
(
f
.
get_ysize
(),
100
)
self
.
assertEqual
(
f
.
get_zsize
(),
1
)
finally
:
testlib
.
safe_unlink
(
'test.spi'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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