askap-craco / CELEBI

The CRAFT Effortless Localisation and Enhanced Burst Inspection Pipeline
MIT License
4 stars 2 forks source link

local variable 'yfreqs' referenced before assignment #454

Closed marcinglowacki closed 1 year ago

marcinglowacki commented 1 year ago

Correlations failed early on for an frb:

_Command exit status: 1

Command output: Going to process c1_f0 python3 /fred/oz002/askap/craft/craco/CELEBI/craco_postproc/pipelines/../difx/vcraft2obs.py --dir=/fred/oz002/askap/craft/craco/CELEBI/craco_postproc/pipelines/../difx --startmjd=58970.02645823917 -k -r19:39:25.02671 -d-63:42:45.6255 --bits=4 --ts=0 --slurm --fpga c1_f0 "/fred/oz002/askap/craft/craco/processing/data/200430/1934/ak/beam48/c1_f0*vcraft"

Traceback (most recent call last): File "/fred/oz002/askap/craft/craco/CELEBI/craco_postproc/pipelines/../difx/vcraft2obs.py", line 577, in _main() File "/fred/oz002/askap/craft/craco/CELEBI/craco_postproc/pipelines/../difx/vcraft2obs.py", line 75, in _main assert xfreqs == yfreqs, ( UnboundLocalError: local variable 'yfreqs' referenced before assignment

vcraft2obs failed! ( 1 )

Command error:

The following have been reloaded with a version change: 1) cython/0.29.16-python-3.7.4 => cython/0.29.21-python-3.7.4 2) numpy/1.18.2-python-3.7.4 => numpy/1.19.2-python-3.7.4

Work dir: /fred/oz002/askap/craft/craco/processing/work/200430/3e/5d8a1868ab7f0be7c437cd3250b86c_

Turned out to be due to a bug for yfreqs only being defined if npol > 1, but breaking in cases if npol == 1. Fixed back in September