Skip to content

Commit c1cdfd6

Browse files
committed
[#92101] ti_dac38j8x_eyescan: Remove conditional import
eyescan test no longer depends on FTDI D2XX library
1 parent ae817f9 commit c1cdfd6

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

protoplaster/tests/dac/ti_dac38j8x_eyescan/process_eyescan.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,8 @@
55
from typing import Callable
66

77
from jinja2 import Environment, DictLoader
8-
9-
TI_DAC38J8X_EYESCAN_LIBRARY = False
10-
try:
11-
from eyescan.eyescan import perform_eyescan
12-
from eyescan.instructions import TestPattern
13-
TI_DAC38J8X_EYESCAN_LIBRARY = True
14-
except OSError:
15-
print(
16-
"Warning: TI DAC38J8X eyescan library is not available. Disabling eyescan module tests."
17-
)
8+
from eyescan.eyescan import perform_eyescan
9+
from eyescan.instructions import TestPattern
1810

1911

2012
class EyeScan:
@@ -28,9 +20,6 @@ def __init__(self, pyftdi_url: str, ftdi_jtag_frequency: float,
2820
self.axis_multiplier = {"x": 1, "y": 10}
2921
self.bit = bit
3022

31-
# Check if the eyescan library is available
32-
assert TI_DAC38J8X_EYESCAN_LIBRARY, "TI DAC38J8X eyescan library is not available."
33-
3423
perform_eyescan(pyftdi_url=pyftdi_url,
3524
ftdi_jtag_frequency=ftdi_jtag_frequency,
3625
ftdi_direction=ftdi_direction,

0 commit comments

Comments
 (0)