Follow-up Comment #1, task #7801 (project relax):

RelaxError:  Two magnetic fields detected but data only present for one.

This could be a single function added to
specific_analyses.relax_disp.checks which is called at the start of
the minimise() API method (and any other user functions that require
it).  As users discover other invalid data combinations - which they
most definitely will - then we just add more and more check_*()
functions to raise RelaxErrors.  This is what happens in all the other
specific analyses.  Rather than handling all possible ways a user can
fit data into relax, which would require huge amounts of complex code,
we simply raise RelaxErrors telling the user what is wrong with their
data input.  This involves only a few 10 line max check_*() functions.
 In this case, the user can then decide to delete the metadata, not
set it up, or load the required data. 

    _______________________________________________________

Reply to this item at:

  <http://gna.org/task/?7801>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
relax (http://www.nmr-relax.com)

This is the relax-devel mailing list
[email protected]

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-devel

Reply via email to