ref: f912e909150f1e608c96af03d40d8cd4d8177b80
parent: 5039244920e9083f3bf1508ad8960cc24514cb83
author: Paul Brossier <piem@piem.org>
date: Fri Jun 21 10:03:49 EDT 2019
[py] add helper to check if we are on a 32bit system
--- a/python/tests/utils.py
+++ b/python/tests/utils.py
@@ -3,10 +3,14 @@
import os
import re
import glob
+import struct
import numpy as np
from tempfile import mkstemp
DEFAULT_SOUND = '22050Hz_5s_brownnoise.wav'
+
+def is32bit():
+ return struct.calcsize("P") * 8 == 32
def array_from_text_file(filename, dtype = 'float'):
realpathname = os.path.join(os.path.dirname(__file__), filename)