devito icon indicating copy to clipboard operation
devito copied to clipboard

Error message for conflicting values could be nicer

Open mikeando opened this issue 3 years ago • 0 comments

At the moment the message I get if I feed mismatched grids is:

ValueError: Unable to find unique value for key z_size, candidates: [23, 182]

To actually work out which variable was causing this I need to print out everything I can about each variable before it goes into the devito operator.

it would be much more helpful if the error message could say which variables those candidates were pulled from, something like:

ValueError: Unable to find unique value for key z_size, candidates: 
   182 - from u, v, vp
    23 - from savebuf

mikeando avatar Feb 25 '21 02:02 mikeando