Name error in median filter
Issue #22
resolved
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)
-
repo owner -
repo owner - changed status to resolved
fix bug
#22→ <<cset 76ecd7464067>>
-
repo owner Feel free to reopen if needed or ask questions regarding the way the routine works.
- Log in to comment
Thanks for reporting this. The suggested fix is exactactly what was intended, and this was a typo. Sorry.