You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So currently it is not possible to create resources or params tags with python code (sm tags).
This is because only the output and input fields are parsed for the sm tag. To enable all fields to contain python code through the sm tag all fields have to be checked with ensureString().
Im not sure if you created the stacktrace with the new version and also with the above yaml header. Since the old code only checks output and input. Therefore you also get only those calls.
Thats ways I looped over the SNAKEMAKE_FIELDS and call the ensureString() function.
If you want to make sure that the user provided the correct input for each tag, then I guess you have to create a dict with the allowed type for each tag and check this before.
Lets have a proper issue for this PR. #11
So currently it is not possible to create resources or params tags with python code (sm tags).
This is because only the
output
andinput
fields are parsed for the sm tag. To enable all fields to contain python code through the sm tag all fields have to be checked withensureString()
.Im not sure if you created the stacktrace with the new version and also with the above yaml header. Since the old code only checks output and input. Therefore you also get only those calls.
Thats ways I looped over the SNAKEMAKE_FIELDS and call the
ensureString()
function.If you want to make sure that the user provided the correct input for each tag, then I guess you have to create a dict with the allowed type for each tag and check this before.
Here again the header file
The text was updated successfully, but these errors were encountered: