First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
Your question and code seem to be two separate issues. For your question, I am guessing you are trying to read in an .idv (or other file) from within python. It will pop-up a Terminal Read window if your file doesn't have the appropriate syntax (i.e. final 0, or improper data entry). Make sure these files work properly before you try and use them in your python code. Better yet, convert the code over to python.
Your issue with your code seems to be that you are trying to convert a string into an integer. I am honestly not sure how you made it past digit=int(digit)
, but you should just leave that bit of code out and treat digit as a string.