Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interpolation mode failed in the newest version? #48

Open
maximka48 opened this issue Apr 20, 2022 · 0 comments
Open

Interpolation mode failed in the newest version? #48

maximka48 opened this issue Apr 20, 2022 · 0 comments

Comments

@maximka48
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant