Closed ShenDongxiang closed 1 year ago
Hello @ShenDongxiang , I think your problem is:
'Av':("fixed", 0.0) on the line. 'Av':("fixed", 0) or 'Av': ('default') should be. I get the same error sometimes. Changing it with these values fixes your problem.
@ShenDongxiang Hi, sorry, I didn't see this bug until now.
I'll try to check it out ASAP, but can't make any promises as I'm currently writing my thesis and that's got me quite busy.
What @denizcdursun says sounds weird to me, but it's worth a shot looking into. If that's indeed the source of the bug, please let me know so I can investigate further.
What @denizcdursun says sounds weird to me, but it's worth a shot looking into. If that's indeed the source of the bug, please let me know so I can investigate further.
I'll add the screenshot here when I get the similar error again.
Hello, @denizcdursun : Thank you very much for the method you provided. I modified my code according to the method you said, however, the same error was still occurred.
I figured it wouldn't fix anything. It doesn't make much sense. Does the error happen every time you run ariadne? with every star?
This has been dormant for a while so I'll close it. Feel free to reopen if needed.
Hello @jvines : Happy new year! I'm trying to repeat the example that you show in the introduction in astroARIANDE, however, I meet a question. Can you help me to solve it? The detail as follows:
from astroARIADNE.star import Star ra = 75.795 dec = -30.399 starname = "NGTS-6" gaia_id = 4875693023844840448 s = Star(starname, ra, dec, g_id=gaia_id, dustmap="Bayestar")
from astroARIADNE.fitter import Fitter
out_folder = "/home/sdx/data/magnetic_variables/SED_data/test/"
engine = "dynesty"
nlive = 500
dlogz = 0.5
bound = 'multi'
sample = 'rwalk'
threads = 4
dynamic = False
setup = [engine, nlive, dlogz, bound, sample, threads, dynamic]
models = ["phoenix","btsettl", "btnextgen", "btcond", "kurucz", "ck04"]
f = Fitter()
f.star = s
f.setup = setup
f.av_law = "fitzpatrick"
f.out_folder = out_folder
f.bma = True
f.models = models
f.n_samples = 100000
f.prior_setup = {"teff":("normal", 5600, 100), 'logg':('default'), 'z':('default'), 'dist':('default'), 'rad':('default'), 'Av':("fixed", 0.0) }
f.initialize()