Skip to content
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

Closed
wants to merge 2 commits into from

Conversation

bazkiaei
Copy link
Contributor

@bazkiaei bazkiaei commented Jun 17, 2019

The code uses a cosmology several times and to avoid creating it I thought maybe it should have it inside the configuration dictionary.
#71

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)
Copy link
Contributor Author

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
Copy link

codecov bot commented Jun 17, 2019

Codecov Report

Merging #85 into develop will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           develop     #85      +/-   ##
==========================================
+ Coverage     99.1%   99.1%   +<.01%     
==========================================
  Files            5       5              
  Lines          558     561       +3     
==========================================
+ Hits           553     556       +3     
  Misses           5       5
Impacted Files Coverage Δ
mocks/tests/test_mocks.py 99.3% <100%> (ø) ⬆️
mocks/mocks.py 99.52% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0a71274...3862737. Read the comment docs.

@bazkiaei bazkiaei requested a review from a team June 17, 2019 00:25
@bazkiaei
Copy link
Contributor Author

@AstroHuntsman/spiderlings
Ready for review.

@bazkiaei bazkiaei requested a review from a team June 18, 2019 07:05
@bazkiaei
Copy link
Contributor Author

@AstroHuntsman/arachne
Ready for review.

@bazkiaei
Copy link
Contributor Author

bazkiaei commented Jul 1, 2019

With respect to the advice that I received, cosmology should not be added to the configuration, so, I am closing this PR.

@bazkiaei bazkiaei closed this Jul 1, 2019
@bazkiaei bazkiaei deleted the add-cosmo branch July 1, 2019 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant