We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15c7371 commit a24cbcbCopy full SHA for a24cbcb
requake/scan/scan_catalog.py
@@ -113,6 +113,11 @@ def scan_catalog():
113
logger.error(msg)
114
rq_exit(1)
115
nevents = len(catalog)
116
+ if nevents < 2:
117
+ logger.error(
118
+ 'Not enough events in catalog. '
119
+ 'You need at least 2 events to run the scan 😉')
120
+ rq_exit(1)
121
logger.info(f'{nevents} events read from catalog file')
122
logger.info('Building event pairs...')
123
logger.info('Computing waveform cross-correlation...')
0 commit comments