<s> from bumps . names import * <EOL> scale = <NUM_LIT:1> <EOL> def box ( x ) : <EOL> return <NUM_LIT:0> if np . all ( np . abs ( x ) <= scale ) else np . inf <EOL> def diamond ( x ) : <EOL> return <NUM_LIT:0> if np . sum ( np . abs ( x ) ) <= scale else np . inf <EOL> M = PDF ( lambda a , b : box ( [ a , b ] ) ) <EOL> M . a . range ( - <NUM_LIT:2> * scale , <NUM_LIT:2> * scale ) <EOL> M . b . range ( - <NUM_LIT:2> * scale , <NUM_LIT:2> * scale ) <EOL> problem = FitProblem ( M ) </s>
