Skip to content

Commit e50dadc

Browse files
author
Dilmi Wickramanayake
committed
Merge branch 'users/DilmiWickramanayake/niscope_ex_fetch_forever' of https://github.com/ni/nipanel-python into users/DilmiWickramanayake/niscope_ex_fetch_forever
2 parents 5b7d789 + 414257d commit e50dadc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/niscope/niscope_ex_fetch_forever.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import time
44
from pathlib import Path
5+
from typing import Any
56

67
import hightime
78
import niscope
@@ -33,7 +34,7 @@
3334
session.configure_trigger_software()
3435

3536
with session.initiate():
36-
wfm: np.ndarray = np.ndarray(length * samples_per_fetch, dtype=np.int8)
37+
wfm: np.ndarray[Any, np.dtype[np.int8]] = np.ndarray(length * samples_per_fetch, dtype=np.int8)
3738
waveforms = session.channels[channels].fetch_into(
3839
relative_to=niscope.FetchRelativeTo.READ_POINTER,
3940
offset=0,

0 commit comments

Comments
 (0)