The bug was caused by the adjust line not being updated before the code began trying to read structures, as a result it attempted to read the structures when it should have been reading the concentration check. This is fixed by ensuring that the adjust variable is no longer it's default value before reading in structures. Actual code chance was:
if line_count - (14 + adjust) in structures:
became:
if line_count - (14 + adjust) in structures and adjust!=0:
I also added some unit test (that cover this issue) files for makeStr.py inside this repo and makeStr.py does pass those unit tests.
The bug was caused by the adjust line not being updated before the code began trying to read structures, as a result it attempted to read the structures when it should have been reading the concentration check. This is fixed by ensuring that the adjust variable is no longer it's default value before reading in structures. Actual code chance was:
became:
I also added some unit test (that cover this issue) files for makeStr.py inside this repo and makeStr.py does pass those unit tests.