Skip to content
Snippets Groups Projects
Commit e19f42a1 authored by Jean-Baptiste Bayle's avatar Jean-Baptiste Bayle
Browse files

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!129Resolve "Add a report job in CI"
Pipeline #213156 passed
......@@ -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:
......
[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]
......
......@@ -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.
......
report.py 0 → 100644
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment