Fix formatting error in example problem beam_3d_exp_gsf.tpd #11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Extra space in front of line 25 was causing example problem to not work. The code would read in the line as input, then fail with the following:
Traceback (most recent call last):
File "optimise.py", line 21, in
t.load_tpd_file(argv[1])
File "/usr/local/lib/python2.7/dist-packages/topy/topology.py", line 82, in load_tpd_file
self.topydict = tpd_file2dict(fname)
File "/usr/local/lib/python2.7/dist-packages/topy/parser.py", line 89, in tpd_file2dict
d = _parsev2007file(s)
File "/usr/local/lib/python2.7/dist-packages/topy/parser.py", line 123, in _parsev2007file
d[pair[0].strip()] = pair[1].strip()
IndexError: list index out of range
Removing the space allows the example to run