-
Notifications
You must be signed in to change notification settings - Fork 26
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
new nested params load
feature breaks workflow
#62
Comments
Thanks for reporting this issue 👍 I will look into it and remove the variables from the nested maps. |
@lukfor perhaps you can do this by putting these vars in the delegate of the closures, rather than in the closure's themselves? |
or could be manually removed as well I guess. |
I remember I had some problems with this approach and variable substitution. But I will look into that the next days. |
As a workaround, I found that I can replicate the
I believe this works because the params map is the delegate of the params closure and forwards the |
PR #117 will fix also this issue. |
@lukfor The support for nested params and loading them from external files (#50, fixing #15) is a very welcome new feature, thank you!
However, I am confused by something -- it seems like the
load()
method is injectingbaseDir
andoutputDir
into my params. And not just at the top level but in nested maps too. Example:Here is my
main.nf.test
file:Here is my
params_debug.json
file:Here is the (pretty printed) output of that
println
call in mymain.nf.test
file:The thing is, my workflow expects
params.references
to be a map with a particular structure. So the injection ofbaseDir
andoutputDir
makes my workflow choke.It seems like this injection into nested maps is by design, but I am left scratching my head. Is it really necessary to do this to all nested maps? I imagine this could break any workflow that makes assumptions about nested maps structure.
(cc: @birnbera)
The text was updated successfully, but these errors were encountered: