Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jass
Manage
Activity
Members
Labels
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Statistical-Genetics
jass
Commits
15608902
Commit
15608902
authored
2 months ago
by
Veronique Legrand
Browse files
Options
Downloads
Patches
Plain Diff
cleaned my test
parent
9656e5de
No related branches found
No related tags found
2 merge requests
!108
Fixing py 3.12
,
!107
Draft: changed the loading of data required to draw the global plot; now read only 3...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
jass/test/test_plots.py
+0
-9
0 additions, 9 deletions
jass/test/test_plots.py
with
0 additions
and
9 deletions
jass/test/test_plots.py
+
0
−
9
View file @
15608902
...
@@ -32,20 +32,11 @@ class TestPlots(JassTestCase):
...
@@ -32,20 +32,11 @@ class TestPlots(JassTestCase):
#import shutil
#import shutil
#print(plt.rcParams)
#print(plt.rcParams)
plots
.
create_global_plot
(
self
.
worktable_hdf_path
,
self
.
test_dir
/
"
global_plot.png
"
)
plots
.
create_global_plot
(
self
.
worktable_hdf_path
,
self
.
test_dir
/
"
global_plot.png
"
)
#plots.create_global_plot(self.worktable_hdf_path, "/Users/vlegrand/tmp/global_plot.png")
img_new
=
Image
.
open
(
self
.
test_dir
/
"
global_plot.png
"
)
img_new
=
Image
.
open
(
self
.
test_dir
/
"
global_plot.png
"
)
#fnew=open(self.test_dir / "global_plot.png",'rb')
#fref=open(self.ref_res_dir / "expected_global_plot.png",'rb')
img_ref
=
Image
.
open
(
self
.
ref_res_dir
/
"
expected_global_plot.png
"
)
img_ref
=
Image
.
open
(
self
.
ref_res_dir
/
"
expected_global_plot.png
"
)
sum_sq_diff
=
np
.
sum
((
np
.
asarray
(
img_new
).
astype
(
'
float
'
)
-
np
.
asarray
(
img_ref
).
astype
(
'
float
'
))
**
2
)
sum_sq_diff
=
np
.
sum
((
np
.
asarray
(
img_new
).
astype
(
'
float
'
)
-
np
.
asarray
(
img_ref
).
astype
(
'
float
'
))
**
2
)
print
(
"
sum_sq_diff=
"
,
sum_sq_diff
)
print
(
"
sum_sq_diff=
"
,
sum_sq_diff
)
assert
(
sum_sq_diff
==
0.0
)
assert
(
sum_sq_diff
==
0.0
)
#content_new=fnew.read()
#content_ref=fref.read()
shutil
.
copyfile
(
self
.
test_dir
/
"
global_plot.png
"
,
"
/pasteur/gaia/homes/vlegrand/global_plot.png
"
)
#assert(content_new==content_ref)
#fnew.close()
#fref.close()
def
test_create_qq_plot
(
self
):
def
test_create_qq_plot
(
self
):
...
...
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment