-
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
Add the option to download 'takeout scripts' #245
base: main
Are you sure you want to change the base?
Conversation
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.
Not sure how much commentary you're looking for at this point, but I saw the draft and wanted to make sure you feel seen and heard
@@ -0,0 +1,27 @@ | |||
def rename_sampling_options(k): |
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.
Technically this only renames one option at a time.
if k == "init_radius": | ||
return "inits" | ||
if k == "num_warmup": | ||
return "iter_warmup" | ||
if k == "num_samples": | ||
return "iter_sampling" | ||
if k == "num_chains": | ||
return "chains" | ||
if k == "seed": | ||
return "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.
I feel like I want this to be a dictionary, but I think I actually just want Python to be Typescript.
.join("\n"); | ||
}; | ||
|
||
const makePyRuntimeScript = (project: ProjectDataModel) => { |
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 kind of code is always going to be pretty ugly to write, but when you're ready to take this out of draft we can chat about whether there's anything to be done with it.
Closes #179
Currently has a working Python script, needs R and probably a better UI