recommended way to input and store parameters? #214
petrelharp
started this conversation in
Ideas
Replies: 1 comment 6 replies
-
Here's how I've started doing it:
So, in my script I can just use SIGMA because it's a constant; at the end I'll pass
it prints out
while if I do
I get
|
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I often want to specify a bunch of parameters in each script, which are set to defaults unless I change them, either on the command line or in a simple file. I used to do it this way:
but (a) this is a bit awkward if there's a lot of them, and more importantly (b) I'd also like to save all the values of these parameters in the tree sequence metadata when I write it out; currently to do that I'd need to build a dictionary with all the parameters.
Beta Was this translation helpful? Give feedback.
All reactions