Skip to content
Snippets Groups Projects
Commit 21d46ca4 authored by Patrick Godwin's avatar Patrick Godwin
Browse files

fix more doctests in datasource.py, update .gitlab-ci.yml with more python...

fix more doctests in datasource.py, update .gitlab-ci.yml with more python files to ignore doctests for
parent 11e89da7
No related branches found
No related tags found
No related merge requests found
......@@ -165,7 +165,7 @@ test:gstlal:
script:
- apt-get install -y python-pytest
- cd gstlal
- python -m pytest -v --doctest-modules --ignore gst/python --ignore port-tools --ignore tests --ignore python/misc.py
- python -m pytest -v --doctest-modules --ignore gst/python --ignore port-tools --ignore tests --ignore python/misc.py --ignore python/pipeparts/__init__.py --ignore python/matplotlibhelper.py
only:
- pushes
- schedules
......
......@@ -88,12 +88,7 @@ def channel_dict_from_channel_list_with_node_range(channel_list):
Examples:
>>> channel_dict_from_channel_list_with_node_range(["0000:0002:H1=LSC_STRAIN_1,L1=LSC_STRAIN_2", "0002:0004:H1=LSC_STRAIN_3,L1=LSC_STRAIN_4", "0004:0006:H1=LSC_STRAIN_5,L1=LSC_STRAIN_6"])
{'0000' : {'H1': 'LSC_STRAIN_1', 'L1': 'LSC-STRAIN_2'},
'0001' : {'H1': 'LSC_STRAIN_1', 'L1': 'LSC-STRAIN_2'},
'0002' : {'H1': 'LSC_STRAIN_3', 'L1': 'LSC-STRAIN_4'},
'0003' : {'H1': 'LSC_STRAIN_3', 'L1': 'LSC-STRAIN_4'},
'0004' : {'H1': 'LSC_STRAIN_5', 'L1': 'LSC-STRAIN_6'},
'0005' : {'H1': 'LSC_STRAIN_5', 'L1': 'LSC-STRAIN_6'} }
{'0004': {'H1': 'LSC_STRAIN_5', 'L1': 'LSC_STRAIN_6'}, '0005': {'H1': 'LSC_STRAIN_5', 'L1': 'LSC_STRAIN_6'}, '0000': {'H1': 'LSC_STRAIN_1', 'L1': 'LSC_STRAIN_2'}, '0001': {'H1': 'LSC_STRAIN_1', 'L1': 'LSC_STRAIN_2'}, '0002': {'H1': 'LSC_STRAIN_3', 'L1': 'LSC_STRAIN_4'}, '0003': {'H1': 'LSC_STRAIN_3', 'L1': 'LSC_STRAIN_4'}}
"""
outdict = {}
for instrument_channel_full in channel_list:
......@@ -180,11 +175,8 @@ def injection_dict_from_channel_list_with_node_range(injection_list):
specify the "append" action.
Examples:
>>> injection_dict_from_channel_list_with_node_range(["0000:0002:Injection_1.xml", "0002:0004:Injection_2.xml"])
{'0000' : 'Injection_1.xml',
'0001' : 'Injection_1.xml',
'0002' : 'Injection_2.xml',
'0003' : 'Injection_2.xml'}
>>> injection_dict_from_channel_list_with_node_range(["0000:0002:Injection_1.xml", "0002:0004:Injection_2.xml"])
{'0000': 'Injection_1.xml', '0001': 'Injection_1.xml', '0002': 'Injection_2.xml', '0003': 'Injection_2.xml'}
"""
outdict = {}
for injection_name in injection_list:
......
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