Skip to content

Commit

Permalink
Added line to run Python examples through github workflows
Browse files Browse the repository at this point in the history
Signed-off-by: spagadar <srikanth.pagadarai@analog.com>
  • Loading branch information
SrikanthPagadarai committed Jul 11, 2024
1 parent df2f499 commit 302e862
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,3 +160,4 @@ jobs:
cd bindings/python
pip install ".[tools]"
python -m pytest -vs tests
for f in examples/*.py; do python "$f"; done
8 changes: 4 additions & 4 deletions bindings/python/genalyzer/simplified.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@ def __init__(self):
_gn_config_gen_ramp.restype = c_int
_gn_config_gen_ramp.argtypes = [
c_ulong,
c_ulong,
c_ulong,
c_double,
c_double,
POINTER(_GNConfigPtr),
]

Expand Down Expand Up @@ -475,8 +475,8 @@ def config_gen_ramp(npts: int, ramp_start: int, ramp_stop: int, c: GNConfig = No
c = GNConfig()

npts = c_ulong(npts)
ramp_start = c_ulong(ramp_start)
ramp_stop = c_ulong(ramp_stop)
ramp_start = c_double(ramp_start)
ramp_stop = c_double(ramp_stop)

ret = _gn_config_gen_ramp(npts, ramp_start, ramp_stop, byref(c._struct))
if ret != 0:
Expand Down

0 comments on commit 302e862

Please sign in to comment.