Skip to content

Commit

Permalink
updated names of yaml files to be more transparent and removed some u…
Browse files Browse the repository at this point in the history
…nused lines in `config_demo.yaml`
  • Loading branch information
samueldmcdermott committed Jul 19, 2024
1 parent 2a1fd18 commit 53ad1cb
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
#Reformat to accomodate decisions on astropy constants and cosmology param input
#UNIVERSAL_CONSTANTS:
# planck_const: 6.626e-34
# boltzman_const: 1.38e-23
# G: 6.6743e-11 #m^3/Kg/s^2
# m_sun: 1.98847e30 #Kg
# Thomson_sec: 6.65246e-29 #m^2
# m_electron: 9.11e-31 #Kg
# c: 299792458 #m/s
# Mpc_to_m: 3.09e22
# kevcm_to_jm: 1.6e-16 * 1e6
# j_to_kev: 6.242e15

COSMOLOGY:
Planck2018: #https://arxiv.org/abs/1807.06209:
flat: True
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion deepszsim/load_vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import sys
import h5py

def load_vars(file_name= "inputdata.yaml",
def load_vars(file_name= "config_everything.yaml",
file_dir = os.path.join(os.path.dirname(__file__), "Settings"),
survey_num : int = None,
survey_name : str = None,
Expand Down
2 changes: 1 addition & 1 deletion deepszsim/read_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class YAMLOperator:

def __init__(self, file_path=os.path.join(os.path.dirname(__file__), "Settings", "inputdata.yaml")):
def __init__(self, file_path=os.path.join(os.path.dirname(__file__), "Settings", "config_everything.yaml")):

self.file_path = file_path

Expand Down
2 changes: 1 addition & 1 deletion deepszsim/simclusters.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def __init__(self, M200 = None, redshift_z = None, num_halos = None, halo_params
R200_Mpc = None, profile = "Battaglia2012",
image_size_pixels = None, image_size_arcmin = None, pixel_size_arcmin = None,
alpha = 1.0, gamma = -0.3,
load_vars_yaml = os.path.join(os.path.dirname(__file__), 'Settings', 'inputdata.yaml'),
load_vars_yaml = os.path.join(os.path.dirname(__file__), 'Settings', 'config_everything.yaml'),
seed = None, tqverb = False
):
"""
Expand Down

0 comments on commit 53ad1cb

Please sign in to comment.