add additional data fetch options in Config
- gwpy is extremely slow sometimes. So, for developmental purposes, it will be good to have the
python -m gwdatfind
as an option through the config file. maybe related to this error which occurs sometimes.
Traceback (most recent call last):
File "/home/vinaya.valsan/virtualenvs/igwn-py39-20221118-rapidpe-rift-dev02/bin/rapidpe-rift-pipe", line 33, in <module>
sys.exit(load_entry_point('rapidpe-rift-pipe', 'console_scripts', 'rapidpe-rift-pipe')())
File "/home/vinaya.valsan/rapidPE/RapidPE_RIFT_Developments/RapidPE-RIFT_fork/rapidpe-rift-pipe/src/rapidpe_rift_pipe/cli.py", line 491, in main
cache_fname = cache_data(
File "/home/vinaya.valsan/rapidPE/RapidPE_RIFT_Developments/RapidPE-RIFT_fork/rapidpe-rift-pipe/src/rapidpe_rift_pipe/cli.py", line 1002, in cache_data
data = get_data_gwpy(channel=channel, data_type=data_type,
File "/home/vinaya.valsan/rapidPE/RapidPE_RIFT_Developments/RapidPE-RIFT_fork/rapidpe-rift-pipe/src/rapidpe_rift_pipe/cli.py", line 1053, in get_data_gwpy
return gwpy.timeseries.TimeSeries.get(
File "/home/vinaya.valsan/virtualenvs/igwn-py39-20221118-rapidpe-rift-dev02/lib/python3.10/site-packages/gwpy/timeseries/core.py", line 596, in get
return cls.DictClass.get(
File "/home/vinaya.valsan/virtualenvs/igwn-py39-20221118-rapidpe-rift-dev02/lib/python3.10/site-packages/gwpy/timeseries/core.py", line 1379, in get
return cls.fetch(channels, start, end, pad=pad, scaled=scaled,
File "/home/vinaya.valsan/virtualenvs/igwn-py39-20221118-rapidpe-rift-dev02/lib/python3.10/site-packages/gwpy/timeseries/core.py", line 1137, in fetch
return cls.fetch(channels, start, end, host=host_,
File "/home/vinaya.valsan/virtualenvs/igwn-py39-20221118-rapidpe-rift-dev02/lib/python3.10/site-packages/gwpy/timeseries/core.py", line 1119, in fetch
connection = io_nds2.auth_connect(host, port)
File "/home/vinaya.valsan/virtualenvs/igwn-py39-20221118-rapidpe-rift-dev02/lib/python3.10/site-packages/gwpy/io/nds2.py", line 340, in auth_connect
return connect(host, port)
File "/home/vinaya.valsan/virtualenvs/igwn-py39-20221118-rapidpe-rift-dev02/lib/python3.10/site-packages/gwpy/io/nds2.py", line 308, in connect
import nds2
ModuleNotFoundError: No module named 'nds2'
- during development, for repeated testing on the same event, we don't need to fetch data every single time. It will be helpful to have a config option
data_cache_file=PATH_TO_DATA_DATA_CACHE
to point to specificdata.cache
file to be used for the run instead of fetching it through gwpy.
Edited by VINAYA VALSAN