forked from M-Labs/artiq
1
0
Fork 0

phaser: avoid OverflowError

This commit is contained in:
Sebastien Bourdeauducq 2022-08-05 22:57:32 +08:00
parent afd4f369d0
commit a2d0ebabfe
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
from __future__ import annotations
from numpy import int32, int64
from numpy import uint32, int32, int64
from artiq.language.core import *
from artiq.coredevice.core import Core
@ -178,7 +178,7 @@ class Phaser:
self.sync_dly = sync_dly
self.dac_mmap = DAC34H84(dac).get_mmap()
self.dac_mmap = [int32(x) for x in self.dac_mmap] # NAC3TODO https://git.m-labs.hk/M-Labs/nac3/issues/14
self.dac_mmap = [int32(uint32(x)) for x in self.dac_mmap] # NAC3TODO https://git.m-labs.hk/M-Labs/nac3/issues/14
self.channel = [PhaserChannel(self, ch, trf)
for ch, trf in enumerate([trf0, trf1])]