Files
python3-damaris/src/damaris/experiments/dac.py
T
markusro efb01250c8
Build Debian Packages / build (bookworm, debian12) (push) Successful in 9m3s
Build Debian Packages / build (trixie, debian13) (push) Successful in 9m9s
add type hints to Experiment.py and dac.py, set up pyrefly as dev dependency
2026-10-17 21:52:10 +02:00

13 lines
274 B
Python

#import math
"""
This module holds everything connected with the DAC and PFG
"""
def conv(I_out: float = 0) -> int:
"""
converts the demanded Output current in Integer
"""
V_dac=I_out/50.0
dac_value=-(V_dac-0.00983)/1.81413e-5
return int(dac_value)