Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LISA Instrument
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
LISA Simulation
LISA Instrument
Commits
e19f42a1
Commit
e19f42a1
authored
2 years ago
by
Jean-Baptiste Bayle
Browse files
Options
Downloads
Plain Diff
Merge branch '104-add-a-report-job-in-ci' into 'master'
Resolve "Add a report job in CI" Closes
#104
See merge request
!129
parents
52684526
017d59b1
No related branches found
No related tags found
1 merge request
!129
Resolve "Add a report job in CI"
Pipeline
#213156
passed
2 years ago
Stage: test
Changes
4
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+13
-0
13 additions, 0 deletions
.gitlab-ci.yml
.pylintrc
+1
-1
1 addition, 1 deletion
.pylintrc
lisainstrument/instrument.py
+8
-2
8 additions, 2 deletions
lisainstrument/instrument.py
report.py
+795
-0
795 additions, 0 deletions
report.py
with
817 additions
and
3 deletions
.gitlab-ci.yml
+
13
−
0
View file @
e19f42a1
...
...
@@ -32,6 +32,19 @@ pytest:
reports
:
junit
:
report.xml
report
:
variables
:
GIT_LFS_SKIP_SMUDGE
:
0
script
:
-
pip install .
-
python report.py
when
:
manual
artifacts
:
expire_in
:
30 days
paths
:
-
"
*.h5"
-
"
*.pdf"
dist
:
stage
:
build
script
:
...
...
This diff is collapsed.
Click to expand it.
.pylintrc
+
1
−
1
View file @
e19f42a1
[BASIC]
# Good variable names which should always be accepted, separated by a comma
good-names=i,j,k,x,t,t0,fs,dt,tt,sc
good-names=i,j,k,x,
y,z,
t,t0,fs,dt,tt,sc
[MESSAGE CONTROL]
...
...
This diff is collapsed.
Click to expand it.
lisainstrument/instrument.py
+
8
−
2
View file @
e19f42a1
...
...
@@ -824,9 +824,11 @@ class Instrument:
Args:
but: optional category of noises to keep on [
'
laser
'
,
'
modulation
'
,
'
clock
'
,
'
pathlength
'
,
'
ranging
'
,
'
jitters
'
]
'
clock
'
,
'
pathlength
'
,
'
ranging
'
,
'
jitters
'
,
'
dws
'
,
'
sync
'
]
"""
valid_noises
=
[
'
laser
'
,
'
modulation
'
,
'
clock
'
,
'
pathlength
'
,
'
ranging
'
,
'
jitters
'
]
valid_noises
=
[
'
laser
'
,
'
modulation
'
,
'
clock
'
,
'
pathlength
'
,
'
ranging
'
,
'
jitters
'
,
'
dws
'
,
'
sync
'
]
if
but
is
not
None
and
but
not
in
valid_noises
:
raise
ValueError
(
f
"
unknown noise
'
{
but
}
'"
)
...
...
@@ -842,6 +844,10 @@ class Instrument:
self
.
disable_ranging_noises
()
if
but
!=
'
jitters
'
:
self
.
disable_jitters
()
if
but
!=
'
dws
'
:
self
.
dws_asds
=
ForEachMOSA
(
0
)
if
but
!=
'
sync
'
:
self
.
sync_asds
=
ForEachSC
(
0
)
def
disable_clock_noises
(
self
):
"""
Turn off all imperfections on clocks.
...
...
This diff is collapsed.
Click to expand it.
report.py
0 → 100644
+
795
−
0
View file @
e19f42a1
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