-
Notifications
You must be signed in to change notification settings - Fork 7
Description
All,
How should I switch on the radial velocity output option in ttvfast ?
I have, for example,
Calculate TTVs using the generate_ttv_model() function
stellar_mass = 1.0 # Stellar mass in solar masses
start_time = 0.0 # Start time in days
end_time = 200.0 # End time in days
time_step = 0.1 # Time step in days
rv_times=np.linspace(start_time,end_time,1000,endpoint=True)
ttv_data,rv_data = generate_ttv_model(planets, stellar_mass, start_time, end_time, time_step,rv_times)
and
def generate_ttv_model(planets, stellar_mass, start_time, end_time, time_step,rv_times):
results = ttvfast.ttvfast(planets, stellar_mass, start_time, time_step, end_time,rv_times=rv_times)
print(results)
ttv_data = results['positions']
rv_data=results['rv']
return ttv_data,rv_data
But it does not appear to work:
TypeError: bad argument type for built-in operation
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "ttv_model.py", line 193, in
ttv_data,rv_data = generate_ttv_model(planets, stellar_mass, start_time, end_time, time_step,rv_times)
File "ttv_model.py", line 29, in generate_ttv_model
results = ttvfast.ttvfast(planets, stellar_mass, start_time, time_step, end_time,rv_times)
File "/home/siegfried/anaconda3/envs/science/lib/python3.8/site-packages/ttvfast/init.py", line 49, in ttvfast
positions, rv = _ttvfast_fn(
SystemError: returned a result with an error set