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
Creating plots for PMOS devices wouldn't work for me, either creating empty plots without any graphs or outright crashing my scripts.
After debugging for a while I noticed the get_indices method would return empty arrays for pmos devices. I applied the following fix in the get_indices method:
ifisinstance(target, tuple): # when `vsb, vgs, vds` is a rangestart, end=target[:2]
ifself.mos=="nmos":
indices=np.where((data>=start) & (data<=end))[0]
ifself.mos=="pmos":
indices=np.where((data<=start) & (data>=end))[0]
iflen(target) ==3: # if it contains a stepstep=int(target[2] / (data[1] -data[0]))
indices=indices[::step]
I can't say if this fix could introduce bugs or errors elsewhere, but it appears to have done the trick.
The text was updated successfully, but these errors were encountered:
Creating plots for PMOS devices wouldn't work for me, either creating empty plots without any graphs or outright crashing my scripts.
After debugging for a while I noticed the
get_indices
method would return empty arrays forpmos
devices. I applied the following fix in theget_indices
method:I can't say if this fix could introduce bugs or errors elsewhere, but it appears to have done the trick.
The text was updated successfully, but these errors were encountered: