Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
7647d519
Commit
7647d519
authored
Nov 28, 2016
by
James Willis
Browse files
Allows any script to be run with any number of snapshots.
parent
8a57ddb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/CoolingHaloWithSpin/test_energy_conservation.py
View file @
7647d519
...
...
@@ -2,8 +2,11 @@ import numpy as np
import
h5py
as
h5
import
matplotlib.pyplot
as
plt
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
OMEGA
=
0.3
# Cosmological matter fraction at z = 0
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment