grd349 / PBjam

A repo for our peak baggin code and tips on jam
MIT License
17 stars 6 forks source link

Can't run pbjam after installtion #269

Closed diyiliaoya closed 1 year ago

diyiliaoya commented 1 year ago

Hi all,

I am new user in PBjam. When I run PBjam as in the doc https://pbjam.readthedocs.io/en/latest/example-session.html , it didn't work. When I run sess = pb.session(ID='KIC4448777',numax=(220.0, 3.0),dnu=(16.97, 0.05),teff=(4750, 250),bp_rp=(1.34, 0.1),exptime=1800,path = '.') , the error is: Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: session.__init__() got an unexpected keyword argument 'exptime'

So I remove the "exptime", but it still didn't work: Querying MAST for KIC4448777 /home/liaoya/anaconda3/envs/pbjam-env/lib/python3.10/site-packages/pbjam/session.py:159: LightkurveDeprecationWarning: The search_lightcurvefile function is deprecated and may be removed in a future version. Use search_lightcurve() instead. search_results = lk.search_lightcurvefile(target=id, **lkwargs) /home/liaoya/anaconda3/envs/pbjam-env/lib/python3.10/site-packages/pbjam/session.py:368: LightkurveDeprecationWarning: The PDCSAP_FLUX function is deprecated and may be removed in a future version. lc0 = _clean_lc(lc_col[0].PDCSAP_FLUX) /home/liaoya/anaconda3/envs/pbjam-env/lib/python3.10/site-packages/pbjam/session.py:370: LightkurveDeprecationWarning: The PDCSAP_FLUX function is deprecated and may be removed in a future version. lc0 = lc0.append(_clean_lc(lc.PDCSAP_FLUX)) /home/liaoya/anaconda3/envs/pbjam-env/lib/python3.10/site-packages/pbjam/session.py:370: LightkurveDeprecationWarning: The PDCSAP_FLUX function is deprecated and may be removed in a future version. lc0 = lc0.append(_clean_lc(lc.PDCSAP_FLUX)) /home/liaoya/anaconda3/envs/pbjam-env/lib/python3.10/site-packages/pbjam/session.py:370: LightkurveDeprecationWarning: The PDCSAP_FLUX function is deprecated and may be removed in a future version. lc0 = lc0.append(_clean_lc(lc.PDCSAP_FLUX)) /home/liaoya/anaconda3/envs/pbjam-env/lib/python3.10/site-packages/pbjam/session.py:370: LightkurveDeprecationWarning: The PDCSAP_FLUX function is deprecated and may be removed in a future version. lc0 = lc0.append(_clean_lc(lc.PDCSAP_FLUX)) /home/liaoya/anaconda3/envs/pbjam-env/lib/python3.10/site-packages/pbjam/session.py:370: LightkurveDeprecationWarning: The PDCSAP_FLUX function is deprecated and may be removed in a future version. lc0 = lc0.append(_clean_lc(lc.PDCSAP_FLUX)) /home/liaoya/anaconda3/envs/pbjam-env/lib/python3.10/site-packages/pbjam/session.py:370: LightkurveDeprecationWarning: The PDCSAP_FLUX function is deprecated and may be removed in a future version. lc0 = lc0.append(_clean_lc(lc.PDCSAP_FLUX)) /home/liaoya/anaconda3/envs/pbjam-env/lib/python3.10/site-packages/pbjam/session.py:370: LightkurveDeprecationWarning: The PDCSAP_FLUX function is deprecated and may be removed in a future version. lc0 = lc0.append(_clean_lc(lc.PDCSAP_FLUX)) /home/liaoya/anaconda3/envs/pbjam-env/lib/python3.10/site-packages/pbjam/session.py:370: LightkurveDeprecationWarning: The PDCSAP_FLUX function is deprecated and may be removed in a future version. lc0 = lc0.append(_clean_lc(lc.PDCSAP_FLUX)) /home/liaoya/anaconda3/envs/pbjam-env/lib/python3.10/site-packages/pbjam/session.py:370: LightkurveDeprecationWarning: The PDCSAP_FLUX function is deprecated and may be removed in a future version. lc0 = lc0.append(_clean_lc(lc.PDCSAP_FLUX)) /home/liaoya/anaconda3/envs/pbjam-env/lib/python3.10/site-packages/pbjam/session.py:370: LightkurveDeprecationWarning: The PDCSAP_FLUX function is deprecated and may be removed in a future version. lc0 = lc0.append(_clean_lc(lc.PDCSAP_FLUX)) /home/liaoya/anaconda3/envs/pbjam-env/lib/python3.10/site-packages/pbjam/session.py:370: LightkurveDeprecationWarning: The PDCSAP_FLUX function is deprecated and may be removed in a future version. lc0 = lc0.append(_clean_lc(lc.PDCSAP_FLUX)) /home/liaoya/anaconda3/envs/pbjam-env/lib/python3.10/site-packages/pbjam/session.py:370: LightkurveDeprecationWarning: The PDCSAP_FLUX function is deprecated and may be removed in a future version. lc0 = lc0.append(_clean_lc(lc.PDCSAP_FLUX)) /home/liaoya/anaconda3/envs/pbjam-env/lib/python3.10/site-packages/pbjam/session.py:370: LightkurveDeprecationWarning: The PDCSAP_FLUX function is deprecated and may be removed in a future version. lc0 = lc0.append(_clean_lc(lc.PDCSAP_FLUX)) /home/liaoya/anaconda3/envs/pbjam-env/lib/python3.10/site-packages/pbjam/session.py:370: LightkurveDeprecationWarning: The PDCSAP_FLUX function is deprecated and may be removed in a future version. lc0 = lc0.append(_clean_lc(lc.PDCSAP_FLUX)) /home/liaoya/anaconda3/envs/pbjam-env/lib/python3.10/site-packages/pbjam/session.py:370: LightkurveDeprecationWarning: The PDCSAP_FLUX function is deprecated and may be removed in a future version. lc0 = lc0.append(_clean_lc(lc.PDCSAP_FLUX)) /home/liaoya/anaconda3/envs/pbjam-env/lib/python3.10/site-packages/pbjam/session.py:370: LightkurveDeprecationWarning: The PDCSAP_FLUX function is deprecated and may be removed in a future version. lc0 = lc0.append(_clean_lc(lc.PDCSAP_FLUX)) /home/liaoya/anaconda3/envs/pbjam-env/lib/python3.10/site-packages/pbjam/session.py:370: LightkurveDeprecationWarning: The PDCSAP_FLUX function is deprecated and may be removed in a future version. lc0 = lc0.append(_clean_lc(lc.PDCSAP_FLUX))

nielsenmb commented 1 year ago

Hi diyiliaoya,

Are you using the pip installed version of PBjam? or the one this repo?

We've had issues with keeping the Lightkurve part of PBjam up to date with their latest versions. The GitHub version of PBjam should work with the latest version of Lightkurve.

diyiliaoya commented 1 year ago

Yes, I used pip to install it. It's PBjam v1.0.0. I'll try this repo. Thank you!

diyiliaoya commented 1 year ago

Hi diyiliaoya,

Are you using the pip installed version of PBjam? or the one this repo?

We've had issues with keeping the Lightkurve part of PBjam up to date with their latest versions. The GitHub version of PBjam should work with the latest version of Lightkurve.

Hi nielsenmb, Thank you for you reply. It worked instead of using this repo. But it still has some warning. When I import pbjam, it shows this warning: WARNING (theano.tensor.blas): Using NumPy C-API based implementation for BLAS functions Does it matter?

nielsenmb commented 1 year ago

No that shouldn't matter. It's a warning that PyMC3 shows when some helper packages aren't installed that make the Theano-based parts run faster.

I've never had an issue with it being particularly slow though, so I admit I've never looked into it.

Let me know how it goes!

diyiliaoya commented 1 year ago

Hi nielsenmb,

I have another question. Both in session and star class, there are two arguments called teff and bp_rp. How do I determine the values of these two arguments? I didn't find any docs about these.

nielsenmb commented 1 year ago

You'll need to look those up for the target you want. Usually what I do is go to Simbad http://simbad.u-strasbg.fr/simbad/sim-fidand find the Gaia entry for the target. There you can find the Teff and bp_rp that they've measured.

If for some reason you can't get a reliable temperature, then using bp_rp on its own should be fine. We included both in case either of the two estimates was off, then the fit wouldn't be completely lost.

On Mon, 16 Jan 2023 at 03:25, diyiliaoya @.***> wrote:

Hi nielsenmb,

I have another question. Both in session and star class, there are two arguments called teff and bp_rp. How do I determine the values of these two arguments? I didn't find any docs about these.

— Reply to this email directly, view it on GitHub https://github.com/grd349/PBjam/issues/269#issuecomment-1383424501, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEJWO3YO2QVZXDSQ3GR7Y4LWSS5RLANCNFSM6AAAAAATZ725EA . You are receiving this because you commented.Message ID: @.***>

diyiliaoya commented 1 year ago

Thanks very much !

diyiliaoya commented 1 year ago

Hi nielsenmb

I got an dependency conflicts when I install the latest version. The package statsmodels need numpy >=1.22.3, but pymc3 need numpy <1.22.2 So how should I do?