Skip to content

Commit

Permalink
bugfix how_to_run_TRES_from_AMUSE: add matplotlib
Browse files Browse the repository at this point in the history
  • Loading branch information
Silvia Toonen committed Dec 30, 2022
1 parent 68b2043 commit 0bd079c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions developer/how_to_run_TRES_from_AMUSE.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from amuse.units import units
from amuse.community.seba.interface import SeBa
import TRES as TRES

import matplotlib.pyplot as plt

#simplest way of running TRES
def example_1():
Expand Down Expand Up @@ -187,7 +187,7 @@ def example_5():

for i in range(len(time_array)):
tr.evolve_model(time_array[i])
print(time_array[i], tr.triple.child2.bin_type, tr.instantaneous_evolution,tr.triple.child2.child1.stellar_type)
# print(time_array[i], tr.triple.child2.bin_type, tr.instantaneous_evolution,tr.triple.child2.child1.stellar_type)
inner_semimajor_axis_array = np.append(inner_semimajor_axis_array, tr.triple.child2.semimajor_axis.value_in(units.RSun))
outer_semimajor_axis_array = np.append(outer_semimajor_axis_array, tr.triple.semimajor_axis.value_in(units.RSun))
radius_primary_array = np.append(radius_primary_array, tr.triple.child2.child1.radius.value_in(units.RSun))
Expand Down

0 comments on commit 0bd079c

Please sign in to comment.