Skip to content

Commit

Permalink
added extra help statements for exceptions thrown in check_input.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jetteodder committed May 6, 2015
1 parent 1727fe2 commit 6e715a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions polyxsim/check_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,8 +491,8 @@ def check(self):
# ' of U_grains, check for multiple names'
if len(grain_list_U) != no_grains:
self.errors['grain_list_U'] = \
'Input number of grains does not agree with number\n' +\
' of U_grains, check for multiple names'
'Input number of grains (%i) does not agree with number\n' %no_grains +\
' of U_grains (%i), check for multiple names' %len(grain_list_U)
self.param['grain_list'] = grain_list_U
if len(grain_list_pos) != 0 and self.param['gen_pos'][0] == 0:
# assert grain_list_U == grain_list_pos, \
Expand Down

0 comments on commit 6e715a1

Please sign in to comment.