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

Monte carlo #81

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Monte carlo #81

wants to merge 10 commits into from

Conversation

wushanyun64
Copy link

Add Monte carlo work flow with class mrsim_emcee.
Add a small function name_abbrev to simplify the long mrsim default param name for substream plotting. (especially correlation matrix for montecarlo).

Add the functionality of monte carlo simulation to mrsimulator.
@wushanyun64
Copy link
Author

emcee is not recognized as a package here.

@deepanshs
Copy link
Owner

Add emcee to the requirements.txt and requirements-dev.txt files located at the root level.

@codecov
Copy link

codecov bot commented Aug 12, 2021

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (545e4dd) to head (7ad66e2).
Report is 16 commits behind head on master.

❗ Current head 7ad66e2 differs from pull request most recent head 5df1e15. Consider uploading reports for the commit 5df1e15 to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##           master       #81      +/-   ##
===========================================
+ Coverage   99.32%   100.00%   +0.67%     
===========================================
  Files         120       106      -14     
  Lines        8330      7345     -985     
===========================================
- Hits         8274      7345     -929     
+ Misses         56         0      -56     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@wushanyun64
Copy link
Author

Should I also update environment.yml, environment-dev.yml files?

@deepanshs
Copy link
Owner

Yes, you will need to add it to environment.yml, environment-dev.yml files for windows build. Can you also add the tests for this code?

@wushanyun64
Copy link
Author

wushanyun64 commented Aug 13, 2021 via email

1. Added test_monte_carlo.py
2. Added emcee to environment.yml and environment-dev.yml
3. Fixed bugs of monte_carlo.py
@wushanyun64
Copy link
Author

Updated environment.yml, environment-dev.yml.
Added test_monte_carlo.py.

@deepanshs
Copy link
Owner

@wushanyun64 @pjgrandinetti @shyamd I see that you have a parallel set of code for naming variables, parsing variables, and chi_square function. If the reason for writing this parallel chunk of code is variable renaming, might I suggest you rename it at the end, i.e., when you generate the analysis report? Having a parallel set of code will force maintaining two sets of code and would lead to bugs. Is there any other reason behind this parallel code?

@wushanyun64
Copy link
Author

@wushanyun64 @pjgrandinetti @shyamd I see that you have a parallel set of code for naming variables, parsing variables, and chi_square function. If the reason for writing this parallel chunk of code is variable renaming, might I suggest you rename it at the end, i.e., when you generate the analysis report? Having a parallel set of code will force maintaining two sets of code and would lead to bugs. Is there any other reason behind this parallel code?

Hi Deepansh:

By parallel set of code do you mean the name_abbrev function or methods such as minimization_function and _update_methods?

If it is the later one you mean, back when I was developing this method, Maxwell's spectral_fitting module was not in the package yet, so a lot of codes have already been written and I just keep developing based on what I have. Can we set up a phone call and discuss this?

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.

2 participants