firepydaq.utilities.DAQUtils

Attributes

COMports

List of available communication ports for devices

AlicatGases

dict

Formulae_dict

dict

Module Contents

firepydaq.utilities.DAQUtils.COMports

List of available communication ports for devices A device must be connected before importing and compiling the application for the COM ports to appear as options.

firepydaq.utilities.DAQUtils.AlicatGases

dict A dictionary that maps gasname to unicode gas names for Alicat device.

For example, ‘N2’: u’Nu2082’.

You can add custom gas map in this dictionary before you import and compile the application interface.

from firepydaq.utilities.DAQUtils import AlicatGases
AlicatGases['C2H2'] = u'C\u2082H\u2082'
firepydaq.utilities.DAQUtils.Formulae_dict

dict A dictionary of functions that maps user-inputted variable in the formulae file to equivalent numpy functions.

For example, exp used in a formulae file is converted into np.exp while executing the formulae

You can add a custom map to this dictionary before you import and compile the application interface, as shown below for ‘log’. Once you do this, you can use ‘log’ in the equations you specify and the formulae parser will replace it to the corresponding function you define.

from firepydaq.utilities.DAQUtils import Formulae_dict
Formulae_dict['log'] = 'np.log10'