Skip to content

Commit

Permalink
Merge pull request #231 from VirtualPlanetaryLaboratory/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
RoryBarnes authored Apr 28, 2022
2 parents 64eb8ca + 7ff3c4d commit 07d9f06
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
11 changes: 10 additions & 1 deletion examples/FfdProxCen/makeplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,31 @@

path = pathlib.Path(__file__).parents[0].absolute()
sys.path.insert(1, str(path.parents[0]))

from get_args import get_args

run = [
"./davenport/vpl.in",
"./lacy/vpl.in",
]

directory = os.getcwd()

print(directory)
# Run the simulations
for i in range(0, 2):
vplanet.run(path / run[i], units=False)

# Loading the data
directory = os.getcwd()

print(directory)
data_daven = np.loadtxt("./davenport/davenport.star.forward")
data_lacy = np.loadtxt("./lacy/lacy.star.forward")

directory = os.getcwd()

print(directory)

age_daven = data_daven[:, 0]

lacy = []
Expand Down
12 changes: 7 additions & 5 deletions examples/MDwarfLuminosity/makeplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,16 @@

path = pathlib.Path(__file__).parents[0].absolute()
sys.path.insert(1, str(path.parents[0]))
from get_args import get_args

# Overwritten old files
directory = ["./LumEvolFlare", "./LumEvolStellar"]

for i in directory:
os.chdir(i)
os.system("rm *.log")
os.system("rm *.forward")
os.chdir(path)
# for i in directory:
# os.chdir(i)
# os.system("rm *.log")
# os.system("rm *.forward")
# os.chdir(path)


# Running the simulations
Expand Down

0 comments on commit 07d9f06

Please sign in to comment.