-
Notifications
You must be signed in to change notification settings - Fork 4
Pbh #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Kerianne28
wants to merge
148
commits into
main
Choose a base branch
from
pbh
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Pbh #22
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
don't need anymore
minor fixes
updated .csv files
added inner slope and v_esc
# Conflicts: # popsycle/run.py # popsycle/synthetic.py
# Conflicts: # popsycle/synthetic.py
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This branch implements everything needed to inject primordial black holes (PBHs) into the .h5 file that will be used by
calc_events.Synthetic.py Changes:
add_pbh:This function takes the .h5 file that is output by
perform_pop_syn, creates everything needed for the injected PBHs, then combines the PBH data with the data from the previous .h5 file into a new .h5 file.This function does the following:
The .h5 file without PBHs is read in (this is the product of
perform_pop_syn). Latitude bins and longitude bins are stored. Maximum ID values are determined, so that we know where to start with the PBH ID's.An NFW profile is used to determine how many PBHs there are within the field of view.
A cylinder with a length of 2*r_max and an area of the field of view is created.
PBHs are populated into this cylinder.
The cylinder gets masked, giving us only the PBHs that exist in the observable light cone.
The Maxwellian velocity distribution is calculated for each radius.
One value is randomly sampled, and assigned as the rms velocity (then converted to vx, vy, and vz).
All other values needed are assigned to each PBH: magnitudes, pop_id, etc.
A new .h5 file is created that consists of all of the data from the original .h5 file (without PBHs. From
perform_pop_syn), combined with all of the new PBH information for the current field.Run.py Changes:
Created an optional
add_argumentstatement for the PBH config file.Added a segment that instructs what to do if a pbh_config file is given.
Added a
synthetic.add_pbhsection to run ifpbh_config_filenameis not None.Added a section that will append "_pbh" to files generated if add_pbh is being run.
generate_pbh_config_file:add_pbhfunction.Other files added:
pbh_config.yaml
radial_velocity_profile_middle.csv
radial_velocity_profile_shallow.csv
radial_velocity_profile_steep.csv