Changeset f912e90


Ignore:
Timestamp:
Jun 21, 2019, 2:03:49 PM (6 months ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/timestretch, master
Children:
099237f
Parents:
5039244
Message:

[py] add helper to check if we are on a 32bit system

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/tests/utils.py

    r5039244 rf912e90  
    44import re
    55import glob
     6import struct
    67import numpy as np
    78from tempfile import mkstemp
    89
    910DEFAULT_SOUND = '22050Hz_5s_brownnoise.wav'
     11
     12def is32bit():
     13    return struct.calcsize("P") * 8 == 32
    1014
    1115def array_from_text_file(filename, dtype = 'float'):
Note: See TracChangeset for help on using the changeset viewer.