You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The Python bindings no longer expose is_sc_active()
The sample code encourages users to call a missing method on line 105 of cp_app.py:
if (count%100) ==99andcp.is_sc_active(PD_0):
Expected behavior
The ability to educate users of this library which python method to call for checking if a PD is active.
Observed behavior
Runtime error when attempting to run the sample.
Additional context
While trying to find alternatives, the following code was successful:
if (count%100) ==99andbool(cp.sc_status() &1<<PD_0):
Will open a PR to fix.
The text was updated successfully, but these errors were encountered:
Describe the bug
The Python bindings no longer expose
is_sc_active()
The sample code encourages users to call a missing method on line 105 of
cp_app.py:
Expected behavior
The ability to educate users of this library which python method to call for checking if a PD is active.
Observed behavior
Runtime error when attempting to run the sample.
Additional context
While trying to find alternatives, the following code was successful:
Will open a PR to fix.
The text was updated successfully, but these errors were encountered: