-
-
Notifications
You must be signed in to change notification settings - Fork 199
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
Issue 404 - refactoring simulation.py #408
Conversation
HARK/simulation.py
Outdated
@@ -33,19 +33,13 @@ def drawMeanOneLognormal(N, sigma=1.0, seed=0): | |||
# Set up the RNG | |||
RNG = np.random.RandomState(seed) |
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.
This isn't needed in this function as the seed is passed on to drawLognormal
.
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.
good call
HARK/tests/test_simulation.py
Outdated
|
||
class SimulationTests(unittest.TestCase): | ||
''' | ||
Tests for .... |
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.
sampling distribution with default seed?
PS: looks like import sys
isn't used
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.
yep
I corrected based on @MridulS 's feedback. Based on today's meeting, my understanding now is that So I won't do any more refactorings in this PR. I submit this PR to be reviewed and pulled. |
This PR is for refactoring of simulation.py as per #404
Currently it:
I would like to go farther and refactor more of the distribution sampling code to be more concise.
But I'm making this PR mainly to test project workflow.