Commit 7647d519 authored by James Willis's avatar James Willis
Browse files

Allows any script to be run with any number of snapshots.

parent 8a57ddb0
...@@ -2,8 +2,11 @@ import numpy as np ...@@ -2,8 +2,11 @@ import numpy as np
import h5py as h5 import h5py as h5
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
import sys import sys
import glob
n_snaps = 101 # Get the total number of snapshots
file_list = glob.glob("CoolingHalo_*")
n_snaps = len(file_list)
#some constants #some constants
OMEGA = 0.3 # Cosmological matter fraction at z = 0 OMEGA = 0.3 # Cosmological matter fraction at z = 0
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment