Closed Weiming-Hu closed 3 years ago
My stack info:
(venv_Predictability) wuh20@cheyenne2:~/github/pv-workflow/02_WeightOptimization> radical-stack
python : /glade/u/home/wuh20/venv_Predictability/bin/python3
pythonpath :
version : 3.7.9
virtualenv : /glade/u/home/wuh20/venv_Predictability
radical.analytics : 1.5.0
radical.entk : 1.5.8
radical.gtod : 1.5.0
radical.pilot : 1.5.12
radical.saga : 1.5.9
radical.utils : 1.5.9
Hmm, we should catch this error earlier - but the observation itself is correct: the arguments are passed on a command line, and the only type a command line knows is strings. We might in the future relax this and convert to strings on our own, but at the moment we don't.
I have encountered the following problem. I'm creating a task like this:
Please note that
weights
is a list with integers, e.g.[1, 1, 1, 2]
.And when I try to run my workflow, I got the following error:
A workaround is to convert
weights
to strings, e.g.weights = [str(w) for w in weights]
.Maybe there is a deeper cause for this? Thanks!