Replace "DMT-SCIENCE" flag with appropriate "ITF_SCIENCE" for V1
I am getting the following error when running bilby_pipe with --ignore-gwpy-data-quality-check=False, but only when the V1 detector is part of the detector list:
Click to expand
``` > 08:02 bilby_pipe WARNING : Error in Data Quality Check: HTTP Error 404: Not Found [V1:DMT-SCIENCE:1]. > Traceback (most recent call last): > File "/cvmfs/oasis.opensciencegrid.org/ligo/sw/conda/envs/igwn-py39-20220707/bin/bilby_pipe_generation", line 10, in > sys.exit(main()) > File "/cvmfs/oasis.opensciencegrid.org/ligo/sw/conda/envs/igwn-py39-20220707/lib/python3.9/site-packages/bilby_pipe/data_generation.py", line 1172, in main > data = DataGenerationInput(args, unknown_args) > File "/cvmfs/oasis.opensciencegrid.org/ligo/sw/conda/envs/igwn-py39-20220707/lib/python3.9/site-packages/bilby_pipe/data_generation.py", line 188, in __init__ > self.create_data(args) > File "/cvmfs/oasis.opensciencegrid.org/ligo/sw/conda/envs/igwn-py39-20220707/lib/python3.9/site-packages/bilby_pipe/data_generation.py", line 229, in create_data > self._set_interferometers_from_data() > File "/cvmfs/oasis.opensciencegrid.org/ligo/sw/conda/envs/igwn-py39-20220707/lib/python3.9/site-packages/bilby_pipe/data_generation.py", line 583, in _set_interferometers_from_data > psd_data = self.__get_psd_data(det) > File "/cvmfs/oasis.opensciencegrid.org/ligo/sw/conda/envs/igwn-py39-20220707/lib/python3.9/site-packages/bilby_pipe/data_generation.py", line 612, in __get_psd_data > psd_data = self._get_data( > File "/cvmfs/oasis.opensciencegrid.org/ligo/sw/conda/envs/igwn-py39-20220707/lib/python3.9/site-packages/bilby_pipe/data_generation.py", line 731, in _get_data > raise BilbyPipeError("Data quality is not good.") > bilby_pipe.utils.BilbyPipeError: Data quality is not good. ```Since Virgo uses other data quality flags, the likely fix for this error is to replace the "DMT-SCIENCE" flag, called in data_generation.py, with "ITF_SCIENCE" when the V1 detector is concerned. One way to see this is by executing:
>>> from gwpy.segments import DataQualityFlag
>>> DataQualityFlag.query("V1:ITF_SCIENCE:1", 1248242631-2, 1248242631+2)
This works fine with V1, but not with H1 nor L1, and inversely when replacing ITF_SCIENCE with DMT-SCIENCE.