jvines / astroARIADNE

Easy stellar SED fitting!
MIT License
57 stars 7 forks source link

PriorError with test_bma script #48

Open privong opened 1 year ago

privong commented 1 year ago

test_bma.py specifies the teff prior as rave:

    f.prior_setup = {
        'teff': ('rave'),

But per the README this does not seem to be an allowed prior specification. Running the script results in a PriorError, though the script otherwise appears to run to completion. The error is:

An exception was caught!: PriorError
Error message: The default prior for teff is not permitted. Allowed priors are normal, truncnorm, uniform and default.

Changing the prior specification to default, seems to fix it, i.e., changing line 49 of test_bma.py to:

        'teff': ('default'),

I am using astroARIANDE version 1.0.9:

In [1]: import astroARIADNE
astroAR PyMultiNest not imported.  MultiNest fits will not work.
/Users/gprivon/opt/anaconda3/lib/python3.7/site-packages/astroARIADNE/fitter.py:44: UserWarning: (py)MultiNest installation (or libmultinest.dylib) not detected.
  '(py)MultiNest installation (or libmultinest.dylib) not detected.'

In [2]: astroARIADNE.__version__
Out[2]: '1.0.9'