CIRADA-Tools/RM-Tools

Code do_RMsynth_3D breaks when modelIcube in pipeline_rmsynth3d is provided

Closed this issue · 4 comments

When providing modelIcube via pipeline_rmsynth3d, the code fails and gives the following error message

File "/home/lerato/Documents/VLASS/RM-Tools-master/RMtools_3D/do_RMsynth_3D.py", line 253, in run_rmsynth
    FDFcube *= Ifreq0Arr
UnboundLocalError: local variable 'FDFcube' referenced before assignment.

Do you have not_rmsynth=True?

Ah yeah indeed, the POSSUM polarimetry pipeline pipeline_rmsynth3d does not_rmsynth=False and not_rmsynth=True, and it will fail in the second case

Should be fixed in #146 , now only does the FDF cube normalisation by the I model if the FDF cube was actually computed

Seems to have solved the issue! Closing issue.