Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jass
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Léo HENCHES
jass
Commits
8084f94e
Commit
8084f94e
authored
1 year ago
by
Bryan BRANCOTTE
Browse files
Options
Downloads
Patches
Plain Diff
test more plots
parent
4ad0df07
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
jass/test/test_plots.py
+13
-10
13 additions, 10 deletions
jass/test/test_plots.py
with
13 additions
and
10 deletions
jass/test/test_plots.py
+
13
−
10
View file @
8084f94e
...
...
@@ -2,11 +2,9 @@
from
__future__
import
absolute_import
import
os
,
shutil
,
tempfile
from
pathlib
import
Path
from
pandas
import
read_hdf
from
pandas.testing
import
assert_frame_equal
from
jass.models.plots
import
create_global_plot
from
jass.models
import
plots
from
.
import
JassTestCase
...
...
@@ -17,9 +15,8 @@ class TestPlots(JassTestCase):
def
setUp
(
self
):
# Create a temporary directory
self
.
test_dir
=
tempfile
.
mkdtemp
()
self
.
test_dir
=
Path
(
tempfile
.
mkdtemp
()
)
self
.
worktable_hdf_path
=
self
.
get_file_path_fn
(
"
worktable-withnans.hdf5
"
)
self
.
global_plot_path
=
os
.
path
.
join
(
self
.
test_dir
,
"
global_manhattan.png
"
)
def
tearDown
(
self
):
# Remove the directory after the test
...
...
@@ -27,10 +24,16 @@ class TestPlots(JassTestCase):
pass
def
test_create_global_plot
(
self
):
"""
Compare result and expected SumStatJostTab
"""
create_global_plot
(
self
.
worktable_hdf_path
,
self
.
global_plot_path
)
plots
.
create_global_plot
(
self
.
worktable_hdf_path
,
self
.
test_dir
/
"
global_plot.png
"
)
def
test_create_qq_plot
(
self
):
plots
.
create_qq_plot
(
self
.
worktable_hdf_path
,
self
.
test_dir
/
"
qq_plot.png
"
)
def
test_create_quadrant_plot
(
self
):
plots
.
create_quadrant_plot
(
self
.
worktable_hdf_path
,
self
.
test_dir
/
"
quadrant_plot.png
"
)
def
test_create_qq_plot_by_GWAS
(
self
):
plots
.
create_qq_plot_by_GWAS
(
self
.
worktable_hdf_path
,
self
.
test_dir
)
if
__name__
==
"
__main__
"
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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