Traceback (most recent call last):


 "d:\anaconda3\envs\rqalpha\lib\site-packages\rqalpha\core\strategy.py", line 80, in before_trading

self._before_trading(self._user_context)
TypeError: 'NoneType' object is not callable

Traceback (most recent call last):


 "test.py", line 208, in test

diffMask(image1, image2, opt, test_loader, args)


 "test.py", line 96, in diffMask

plt.imsave("{}/{}_{}_mask.jpg".format(save_masks, f, img1[:-6]), msk1, cmap="gray")


 "/usr/local/lib/python3.6/dist-packages/matplotlib/pyplot.py", line 2066, in imsave

return matplotlib.image.imsave(fname, arr, **kwargs)


 "/usr/local/lib/python3.6/dist-packages/matplotlib/image.py", line 1550, in imsave

rgba = sm.to_rgba(arr, bytes=True)


 "/usr/local/lib/python3.6/dist-packages/matplotlib/cm.py", line 217, in to_rgba

xx = np.empty(shape=(m, n, 4), dtype=x.dtype)
TypeError: data type not understood
