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

Fix formatting error in example problem beam_3d_exp_gsf.tpd #11

Merged
merged 1 commit into from
May 31, 2016

Conversation

jestuber
Copy link
Contributor

@jestuber jestuber commented Apr 5, 2016

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

Extra space in front of line 25 was causing example problem to not work
@williamhunter williamhunter merged commit 66973cd into williamhunter:master May 31, 2016
@williamhunter
Copy link
Owner

Thanks.

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.

2 participants