mirror of
https://github.com/Findus23/halo_comparison.git
synced 2024-09-19 16:03:50 +02:00
only match field halos
This commit is contained in:
parent
d036e34204
commit
cd84744a7a
1 changed files with 5 additions and 0 deletions
|
@ -28,6 +28,7 @@ class Counterset:
|
|||
bad_match: int = 0
|
||||
negative_cnfw: int = 0
|
||||
too_small_halo: int = 0
|
||||
not_a_field_halo: int = 0
|
||||
checking_50: int = 0
|
||||
checking_150: int = 0
|
||||
num_matches: int = 0
|
||||
|
@ -120,6 +121,10 @@ def compare_halo_resolutions(
|
|||
print("skipping")
|
||||
counters.too_small_halo += 1
|
||||
continue
|
||||
if ref_halo.Structuretype != 10:
|
||||
print("not a field halo")
|
||||
counters.not_a_field_halo += 1
|
||||
continue
|
||||
print("LEN", len(halo_particle_ids), ref_halo.Mass_tot)
|
||||
offset_x, offset_y = ref_halo.X, ref_halo.Y
|
||||
# cumulative_mass_profile(particles_in_ref_halo, ref_halo, ref_meta, plot=plot)
|
||||
|
|
Loading…
Reference in a new issue