Skip to content
Snippets Groups Projects

fix by TB: microphone_to_memory does not work otherwise

Merged Fabian Reister requested to merge fix/assert-error into master
1 unresolved thread
@@ -29,7 +29,6 @@ def pythonic_to_aron_ice(
elif isinstance(value, np.int64):
return AronDataIceTypes.long(int(value))
elif isinstance(value, int) or isinstance(value, np.int32):
assert(isinstance(value, int)), value
assert 'invalid value - expected int' not in str(AronIceTypes.int(int(value))), \
f'Casting {value} to int failed. Did you intend to use np.int64 instead, ' \
'but assigned a plain int value, or converted the value somewhere in the meantime?'
Loading