Advanced search
Quantiacs > numpy array in settings View modes: 
WingNut - 3/27/2019 7:35:05 AM
numpy array in settings
The toolbox performs a dictionary comparison on 'settings', line 754

    if 'settingsCache' not in globals() or settingsCache != settings:    

This is problematic if one's settings dictionary includes a numpy array.  It will generate an exception on array comparison.  One workaround is to convert array to lists for storage in 'settings'.

ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()