Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
1 merge request!286Cooling halo updates
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment