Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mesca committed Feb 16, 2022
1 parent 90ae5ee commit b918e91
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions timeflux_plux/helpers/transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,34 @@

def ECG(signal):
"""ECG value in millivolt (π‘šπ‘‰)"""
return ((signal / 2 ** RESOLUTION) - 0.5) * VCC
return ((signal / 2**RESOLUTION) - 0.5) * VCC


def BVP(signal):
"""BVP value in r.i. units"""
return signal / 2 ** RESOLUTION
return signal / 2**RESOLUTION


def EDA(signal):
"""EDA value in microsiemens (πœ‡π‘†)"""
return ((signal / 2 ** RESOLUTION) * VCC) / 0.12
return ((signal / 2**RESOLUTION) * VCC) / 0.12


def EMG(signal):
"""EMG value in millivolt (π‘šπ‘‰)"""
return ((signal / 2 ** RESOLUTION) - 0.5) * VCC
return ((signal / 2**RESOLUTION) - 0.5) * VCC


def PZT(signal):
"""Displacement value in percentage (%) of full scale"""
return ((signal / 2 ** RESOLUTION) - 0.5) * 100
return ((signal / 2**RESOLUTION) - 0.5) * 100


def EEG(signal):
"""EEG value in microvolt (πœ‡π‘‰)"""
return ((((signal / 2 ** RESOLUTION) - 0.5) * VCC) / 40000) * 1e-6
return ((((signal / 2**RESOLUTION) - 0.5) * VCC) / 40000) * 1e-6


def LUX(signal):
"""LUX normalized value (0-1)"""
return signal / 2 ** RESOLUTION
return signal / 2**RESOLUTION
2 changes: 1 addition & 1 deletion timeflux_plux/nodes/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# Load library according to system
_lib = platform.system()
_lib += "ARM" if platform.machine().startswith("arm") else ""
_lib += "64" if sys.maxsize > 2 ** 32 else "32"
_lib += "64" if sys.maxsize > 2**32 else "32"
if platform.system() in ("Windows", "Darwin"):
_version = sys.version.split(".")
_lib += f"_{''.join(sys.version.split('.')[0:2])}"
Expand Down

0 comments on commit b918e91

Please sign in to comment.