pycbc
pycbc copied to clipboard
Error from SNR optimizer
This came from a trigger very close to the boundary of an analysis segment.
2023-03-30T08:08:06.360-07:00 Running with CPU support: 1 threads
2023-03-30T08:08:07.796-07:00 Starting optimize SNR
2023-03-30T08:08:07.804-07:00 Following up GID G970459
2023-03-30T08:08:07.807-07:00 Starting optimization
/home/pycbc.live/.conda/envs/o4-prod-env/lib/python3.9/site-packages/scipy/optimize/_differentialevolution.py:382: UserWarning: differential_evolution: the 'workers' keyword has overridden updating='immediate' to updating='deferred'
with DifferentialEvolutionSolver(func, bounds, args=args,
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/pycbc.live/.conda/envs/o4-prod-env/lib/python3.9/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/home/pycbc.live/.conda/envs/o4-prod-env/lib/python3.9/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/home/pycbc.live/.conda/envs/o4-prod-env/lib/python3.9/site-packages/scipy/_lib/_util.py", line 372, in __call__
return self.f(x, *self.args)
File "/home/pycbc.live/.conda/envs/o4-prod-env/bin/pycbc_optimize_snr", line 116, in compute_minus_network_snr
nsnr, _ = compute_network_snr_core(v, *argv)
File "/home/pycbc.live/.conda/envs/o4-prod-env/bin/pycbc_optimize_snr", line 105, in compute_network_snr_core
snr_series = snr[onsource_slice] * norm
File "/home/pycbc.live/.conda/envs/o4-prod-env/lib/python3.9/site-packages/pycbc/types/array.py", line 65, in convert
return func(self, *args, **kwargs)
File "/home/pycbc.live/.conda/envs/o4-prod-env/lib/python3.9/site-packages/pycbc/types/array.py", line 819, in __getitem__
return self._getslice(index)
File "/home/pycbc.live/.conda/envs/o4-prod-env/lib/python3.9/site-packages/pycbc/types/timeseries.py", line 131, in _getslice
raise ValueError(('Negative start index ({})'
ValueError: Negative start index (-1107) not supported
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/pycbc.live/.conda/envs/o4-prod-env/lib/python3.9/site-packages/scipy/optimize/_differentialevolution.py", line 1123, in _calculate_population_energies
self._mapwrapper(self.func, parameters_pop[0:S])
File "/home/pycbc.live/.conda/envs/o4-prod-env/lib/python3.9/site-packages/scipy/_lib/_util.py", line 442, in __call__
return self._mapfunc(func, iterable)
File "/home/pycbc.live/.conda/envs/o4-prod-env/lib/python3.9/multiprocessing/pool.py", line 364, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/home/pycbc.live/.conda/envs/o4-prod-env/lib/python3.9/multiprocessing/pool.py", line 771, in get
raise self._value
ValueError: Negative start index (-1107) not supported
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/pycbc.live/.conda/envs/o4-prod-env/bin/pycbc_optimize_snr", line 348, in <module>
opt_params = optimize_func(bounds, args, extra_args)
File "/home/pycbc.live/.conda/envs/o4-prod-env/bin/pycbc_optimize_snr", line 133, in optimize_di
results = differential_evolution(
File "/home/pycbc.live/.conda/envs/o4-prod-env/lib/python3.9/site-packages/scipy/optimize/_differentialevolution.py", line 397, in differential_evolution
ret = solver.solve()
File "/home/pycbc.live/.conda/envs/o4-prod-env/lib/python3.9/site-packages/scipy/optimize/_differentialevolution.py", line 989, in solve
self._calculate_population_energies(
File "/home/pycbc.live/.conda/envs/o4-prod-env/lib/python3.9/site-packages/scipy/optimize/_differentialevolution.py", line 1129, in _calculate_population_energies
raise RuntimeError(
RuntimeError: The map-like callable must be of the form f(func, iterable), returning a sequence of numbers the same length as 'iterable'
Do we have any way to reproduce this?
Just going through my to-do list: I'm happy to try and track this down this week, but would be great if the files that reproduce this are available (presumably behind LVK auth).
I forget if we ever addressed this one… @maxtrevor?
I forget if we ever addressed this one… @maxtrevor?
I don't think we did but there have been a lot of changes to the snr optimizer that may have inadvertently fixed it? I'm happy with closing this and reopening if this error ever crops up again.
The error points to GID G970459, so this should be fairly easy to try and reproduce assuming that event has not been deleted. I might look into this later this month…