university-of-newcastle-research / pmwg

Repository for code for the Samplers Team at UoN
4 stars 3 forks source link

Better errors on incorrect arg names #16

Closed gjcooper closed 4 years ago

gjcooper commented 4 years ago

When an argument for a function (in particular run_stage) is expected (say particles) but is misspelled then an error is thrown.

However if n_cores > 1 the error is sometimes (maybe always) misattributed to a different line in the source code - meaning any attempts to diagnose the issue are incorrectly focussed.

Automatic detection of unexpected arguments to run_stage with early and informative error messages would be of assistance here.