Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mcmc_stretch_move #3

Open
saeedm31 opened this issue Mar 2, 2021 · 1 comment
Open

mcmc_stretch_move #3

saeedm31 opened this issue Mar 2, 2021 · 1 comment

Comments

@saeedm31
Copy link

saeedm31 commented Mar 2, 2021

$ ./pyaneti.py test

==============================

INITIAL CONFIGURATION     

Star = test
No. planets = 1

iter max = 100000000
thin factor = 1
nconv = 500
nwalkers = 100

fit RV = [True]
fit Transit = [True]

LC data = free
cadence time = 30.000 min
n rebinning = 1
Stellar priors = [True]

PLANET testb

    PRIOR RANGES          

T0 = u[ 2448285.0500 , 2448285.1500 ]
P = u[ 365.2060 , 365.3060 ]
ew1= f[ 0.0000 , 1.0000 ]
ew2= f[ 0.0000 , 1.0000 ]
b = f[ 0.0000 , 1.0000 ]
a = g[ 200.0000 , 250.0000 ]
rp = u[ 0.0000 , 0.1000 ]
K = u[ 0.0000 , 0.0010 ]

Other parameter priors

q1 = g[ 0.3464 , 0.0500 ]
q2 = g[ 0.2839 , 0.0500 ]
Super_telescope = u[ 21.9719 , 22.1721 ]

Traceback (most recent call last):
File "./pyaneti.py", line 14, in
import pyaneti as pti #FORTRAN module
File "/Users/shojjatpanah/pyaneti/pyaneti.py", line 59, in
joint_fit()
File "src/todo-py.py", line 549, in joint_fit
pti.mcmc_stretch_move(
AttributeError: 'module' object has no attribute 'mcmc_stretch_move'

@exo-pt
Copy link

exo-pt commented Jun 4, 2022

I had exactly the same error (1 year later...)

File "", line 660, in joint_fit
AttributeError: module 'pyaneti' has no attribute 'mcmc_stretch_move'

(In my case, using WSLg Ubuntu 18.04 under Windows 11)

The problem is with the Fortran to Python Interface in the makefile (f2py3.6)
After changing the 1st line from
FP=f2py3.6
to
FP=f2py
and compiling again, the problem was solved
In my system f2py3.6 has numpy version 1.13.3 and f2py has version 1.20.1

So, an updated version of the interface should solve the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants