-
Notifications
You must be signed in to change notification settings - Fork 31
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
create "block off" or something to comment or remove a block of nml #156
Comments
@dzrobert upvotes this |
@lawinslow got any suggestions for the syntax on this? I think I can implement it (and will self-assign), but should this be an arg in |
No clue, would we be able to turn it back on? If not, it seems you'd just need a |
the complexity of this wildly varies depending on whether we want "switch off" vs "toggle on/off". If it is a toggle, it is kind of more in-line with the support of comments in #139 |
Yeah, I know. @dzrobert, would just |
@hdugan did you have a use-case for this, or does it not apply to your workflow? |
@lawinslow I think I may add the aed_block <- rm_nml_block(glm_nml, 'wq_setup')
#...write glm etc
# run sim w/ aed off
add_nml_block(glm_nml, aed_block)
# run sim w/ aed off ugg, nevermind, that won't work w/ pass by copy. Would actually need to do a much uglier: aed_block <- glm_nml['wq_setup']
glm_nml<- rm_nml_block(glm_nml, 'wq_setup')
#...write glm etc
# run sim w/ aed off
add_nml_block(glm_nml, aed_block)
# run sim w/ aed off Other ideas to support a toggle without a major overhaul? |
Ok, how about this
Thoughts? |
I like this a lot. Personally, I do like going with |
Curious though, @lawinslow - is this kind of thing possible with the glm_nml['variable','variable_2'] = c('some new value','other new value') |
It would be possible, but maybe not desirable given the conflation of dimensionality. How about glm_nml[c('variable','variable_2')] = c('some new value','other new value') |
yes, that works for me |
Closing for #255 |
function to easily turn off (for example) aed part of the sim
The text was updated successfully, but these errors were encountered: