TypeError: Traceback (most recent call last):


 "/home/alan/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 138, in _worker_loop

samples = collate_fn([dataset[i] for i in batch_indices])
TypeError: 'NoneType' object is not callable
Traceback (most recent call last):


 "./test.py", line 7, in <module>

print(metpy.interpolate.log_interpolate_1d(x_interp, x_log, y_log))


 "/Users/chaosun/anaconda3/lib/python3.7/site-packages/metpy/xarray.py", line 436, in wrapper

return func(*args, **kwargs)


 "/Users/chaosun/anaconda3/lib/python3.7/site-packages/pint/registry_helpers.py", line 194, in wrapper

result = func(*new_values, **kw)


 "/Users/chaosun/anaconda3/lib/python3.7/site-packages/metpy/interpolate/one_dimension.py", line 228, in log_interpolate_1d

return interpolate_1d(log_x, log_xp, *args, axis=axis, fill_value=fill_value)


 "/Users/chaosun/anaconda3/lib/python3.7/site-packages/metpy/xarray.py", line 436, in wrapper

return func(*args, **kwargs)


 "/Users/chaosun/anaconda3/lib/python3.7/site-packages/pint/registry_helpers.py", line 194, in wrapper

result = func(*new_values, **kw)


 "/Users/chaosun/anaconda3/lib/python3.7/site-packages/metpy/interpolate/one_dimension.py", line 119, in interpolate_1d

variables = [arr[sorter] for arr in args]


 "/Users/chaosun/anaconda3/lib/python3.7/site-packages/metpy/interpolate/one_dimension.py", line 119, in <listcomp>

variables = [arr[sorter] for arr in args]
TypeError: tuple indices must be integers or slices, not tuple
