Name error in median filter

Issue #22 resolved
JOAQUÍN HERNÁNDEZ created an issue

The files tools/median-filter-cube.py and lib/median_filter_lib.py raise NameError when using --ao parameter in median-filter-cube.py. There are variables called notch_start_pix and notch_start_px in both files and it causes the errors, renaming these variables makes the code works as expected.

Traceback (most recent call last):
  File "lsdcat/lib/median_filter_lib.py", line 105, in medfilt_cube_para
    'notch_start_px': int(notch_start_pix),
NameError: name 'notch_start_pix' is not defined

Traceback (most recent call last):
  File "lsdcat/tools/median-filter-cube.py", line 169, in <module>
    notch_start_px=notch_start_px,
NameError: name 'notch_start_px' is not defined

Comments (3)

  1. Christian Herenz repo owner

    Thanks for reporting this. The suggested fix is exactactly what was intended, and this was a typo. Sorry.

  2. Christian Herenz repo owner

    Feel free to reopen if needed or ask questions regarding the way the routine works.

  3. Log in to comment