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
William Clarke
fsl_mrs
Commits
bd91690f
Commit
bd91690f
authored
Jun 29, 2022
by
William Clarke
Browse files
Remove file comparison test, doesn't work between OSs.
parent
66a9f703
Pipeline
#14852
passed with stages
in 21 minutes and 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
fsl_mrs/tests/test_utils_plotting.py
View file @
bd91690f
...
...
@@ -3,7 +3,7 @@
Copyright William Clarke, University of Oxford, 2022'''
from
pathlib
import
Path
import
filecmp
#
import filecmp
from
matplotlib.figure
import
Figure
...
...
@@ -18,6 +18,6 @@ fig1 = testsPath / 'testdata/plotting/plot_world_orient.png'
def
test_world_orientation_plot
(
tmp_path
):
fig
=
plotting
.
plot_world_orient
(
t1_data
,
svs_data
)
fig
.
savefig
(
tmp_path
/
'plot_world_orient.png'
,
bbox_inches
=
'tight'
,
facecolor
=
'k'
)
#
fig.savefig(tmp_path / 'plot_world_orient.png', bbox_inches='tight', facecolor='k')
assert
isinstance
(
fig
,
Figure
)
assert
filecmp
.
cmp
(
fig1
,
str
(
tmp_path
/
'plot_world_orient.png'
))
#
assert filecmp.cmp(fig1, str(tmp_path / 'plot_world_orient.png'))
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