Numeric arguments, such as g, have nargs='*', which stores them as a list:
|
pcsf_params.add_argument("-g", dest="g", nargs="*", type=float, required=False, default=20, |
|
help="Gamma: multiplicative edge penalty from degree of endpoints [default: 20]") |
That causes the parameter checks in graph.py to fail because they are not numeric:
|
if not (isinstance(self.params.g, numbers.Number) and (self.params.g >= 0)): raise ValueError("parameter g must be a positive number. Was "+str(self.params.g)) |
Was the goal to support parameter sweeps from the command line? It looks like there either needs to be a loop over the calls to oi.Graph(args.edge_file, params) or these arguments should be stored as floats.
Numeric arguments, such as
g, havenargs='*', which stores them as a list:OmicsIntegrator2/src/__main__.py
Lines 43 to 44 in ea1092f
That causes the parameter checks in
graph.pyto fail because they are not numeric:OmicsIntegrator2/src/graph.py
Line 144 in ea1092f
Was the goal to support parameter sweeps from the command line? It looks like there either needs to be a loop over the calls to
oi.Graph(args.edge_file, params)or these arguments should be stored as floats.