constantinpape / pybdv

python tools for BigDataViewer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Interpolation mode failed in the newest version?

maximka48 opened this issue · comments

Hi Constantin

I reinstalled conda env and pybdv recently. Was processing a file as usual and got an error.

(/das/work/p15/p15889/Maxim_LCT) [polikarpov_m@ra-gpu-001 scripts_batch]$ Downsample scale 1 / 5
/das/work/p15/p15889/Maxim_LCT/lib/python3.6/site-packages/pybdv/downsample.py:51: UserWarning: Downscaling with mode 'interpolate' may lead to different results depending on the chunk size
  warn("Downscaling with mode 'interpolate' may lead to different results depending on the chunk size")
  0%|                                                                                                               | 0/16384 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "5sec_185deg_4ppd_ra_dev.py", line 208, in <module>
    unit='micrometer', setup_name = data_name) 
  File "/das/work/p15/p15889/Maxim_LCT/lib/python3.6/site-packages/pybdv/converter.py", line 461, in make_bdv
    overwrite=overwrite_data)
  File "/das/work/p15/p15889/Maxim_LCT/lib/python3.6/site-packages/pybdv/converter.py", line 204, in make_scales
    overwrite=overwrite)
  File "/das/work/p15/p15889/Maxim_LCT/lib/python3.6/site-packages/pybdv/downsample.py", line 172, in downsample
    sample_chunk(bb)
  File "/das/work/p15/p15889/Maxim_LCT/lib/python3.6/site-packages/pybdv/downsample.py", line 163, in sample_chunk
    outp = downsample_function(inp, factor, out_shape)
  File "/das/work/p15/p15889/Maxim_LCT/lib/python3.6/site-packages/pybdv/downsample.py", line 15, in ds_interpolate
    anti_aliasing=order > 0, preserve_range=True)
TypeError: resize() got an unexpected keyword argument 'anti_aliasing'

Do you have an idea what could be the problem?