Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ngspice variable count #6

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

sobremesa87
Copy link

Output raw files from ngspice sometimes have a form that means variables are not detected correctly by the regular expressions. Like in this example:

"Variables:
0 v-sweep voltage
1 voltage
2 @include[current] capacitance
3 i(@m.xm1.msky130_fd_pr__nfet_01v8_lvt[ib]) current dims=0
...
"

In this case, lines 1 and 2 were merged. Ultimately, this leads to a mismatch between the number of fields in the dtype and the number of fields in the array of values, so the file cannot be read. Have changed from a regular expression to a line by line interpretation to get round this. Also, as in the contribution guidelines, have added some tests for this code. Tests are based on a simulation of the open source skywater library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant