Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gstlal-calibration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Aaron Viets
gstlal-calibration
Commits
85e3f99b
Commit
85e3f99b
authored
7 months ago
by
Aaron Viets
Browse files
Options
Downloads
Patches
Plain Diff
Artifacts
parent
f5b1a1f3
Branches
42-changed-file-names-of-psd-asd-files-used-by-bwp
42-changed-file-names-of-psd-asd-files-used-by-bwp-2
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#648202
passed
7 months ago
Stage: distribution
Stage: source packages
Stage: build
Stage: test
Stage: docker
Stage: lint
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+14
-0
14 additions, 0 deletions
.gitlab-ci.yml
tests/tests_pytest/plot.py
+5
-5
5 additions, 5 deletions
tests/tests_pytest/plot.py
with
19 additions
and
5 deletions
.gitlab-ci.yml
+
14
−
0
View file @
85e3f99b
...
...
@@ -137,6 +137,20 @@ test:
-
gst-inspect-1.0 gstlalcalibration
# run the tests
-
python3 -m pytest
artifacts
:
paths
:
-
tests/tests_pytest/*.txt
-
tests/tests_pytest/ASD_data/*.png
-
tests/tests_pytest/ASD_data/*asd.txt
-
tests/tests_pytest/pcal_data/*.png
-
tests/tests_pytest/pcal_data/*Pcal_0*.txt
-
tests/tests_pytest/pcal_data/*Pcal_1*.txt
-
tests/tests_pytest/act_data/*.png
-
tests/tests_pytest/act_data/*Act_0*.txt
-
tests/tests_pytest/act_data/*Act_1*.txt
-
tests/tests_pytest/State_Vector_data/State_Vector_Approx.txt
-
tests/tests_pytest/State_Vector_data/State_Vector_Exact.txt
expire_in
:
24h
# Docker Images
...
...
This diff is collapsed.
Click to expand it.
tests/tests_pytest/plot.py
+
5
−
5
View file @
85e3f99b
...
...
@@ -20,7 +20,7 @@ import matplotlib.pyplot as plt
def
plot_ASD
(
hoft_f
=
'
Approx_hoft_asd.txt
'
,
clean_f
=
'
Approx_clean_asd.txt
'
):
plot_filename
=
'
tests/tests_pytest/
'
+
hoft_f
.
split
(
'
.
'
)[
0
]
+
'
_plot.png
'
plot_filename
=
'
tests/tests_pytest/
ASD_data/
'
+
hoft_f
.
split
(
'
.
'
)[
0
]
+
'
_plot.png
'
hoft_f
=
'
tests/tests_pytest/ASD_data/
'
+
str
(
hoft_f
)
clean_f
=
'
tests/tests_pytest/ASD_data/
'
+
str
(
clean_f
)
hoft
=
np
.
loadtxt
(
hoft_f
)
...
...
@@ -92,7 +92,7 @@ def plot_pcal():
plt
.
xlabel
(
'
Time
'
)
plt
.
ylabel
(
'
Phase
'
)
plt
.
savefig
(
'
tests/tests_pytest/test_approx_pcal_plot_%s.png
'
%
name
)
plt
.
savefig
(
'
tests/tests_pytest/
pcal_data/
test_approx_pcal_plot_%s.png
'
%
name
)
plt
.
close
()
np_lst_e
=
[]
...
...
@@ -118,7 +118,7 @@ def plot_pcal():
plt
.
xlabel
(
'
Time
'
)
plt
.
ylabel
(
'
Phase
'
)
plt
.
savefig
(
'
tests/tests_pytest/test_exact_pcal_plot_%s.png
'
%
name
)
plt
.
savefig
(
'
tests/tests_pytest/
pcal_data/
test_exact_pcal_plot_%s.png
'
%
name
)
plt
.
close
()
...
...
@@ -157,7 +157,7 @@ def plot_act():
plt
.
xlabel
(
'
Time
'
)
plt
.
ylabel
(
'
Phase
'
)
plt
.
savefig
(
'
tests/tests_pytest/test_approx_act_plot_%s.png
'
%
name
)
plt
.
savefig
(
'
tests/tests_pytest/
act_data/
test_approx_act_plot_%s.png
'
%
name
)
plt
.
close
()
np_lst_e
=
[]
...
...
@@ -184,7 +184,7 @@ def plot_act():
plt
.
xlabel
(
'
Time
'
)
plt
.
ylabel
(
'
Phase
'
)
plt
.
savefig
(
'
tests/tests_pytest/test_exact_act_plot_%s.png
'
%
name
)
plt
.
savefig
(
'
tests/tests_pytest/
act_data/
test_exact_act_plot_%s.png
'
%
name
)
plt
.
close
()
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