-
Notifications
You must be signed in to change notification settings - Fork 1
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
Adding cosmology to the configuration dictionary #85
Conversation
mocks/mocks.py
Outdated
@@ -140,6 +142,7 @@ def parse_config(config_file='config_example.yaml', | |||
# Redshift | |||
config['redshift'] = kwargs.get('redshift', | |||
config['redshift']) | |||
config['cosmology'] = mocks.create_cosmology(config) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure about using the function create_cosmology
inside the function parse_config
. Any advice about that?
Codecov Report
@@ Coverage Diff @@
## develop #85 +/- ##
==========================================
+ Coverage 99.1% 99.1% +<.01%
==========================================
Files 5 5
Lines 558 561 +3
==========================================
+ Hits 553 556 +3
Misses 5 5
Continue to review full report at Codecov.
|
@AstroHuntsman/spiderlings |
@AstroHuntsman/arachne |
With respect to the advice that I received, cosmology should not be added to the configuration, so, I am closing this PR. |
The code uses a cosmology several times and to avoid creating it I thought maybe it should have it inside the configuration dictionary.
#71