Skip to content
Snippets Groups Projects
Commit 0635d822 authored by Hu Zhao's avatar Hu Zhao
Browse files

refactor: change np.atleast_2d to np.reshape

parent 8f5426df
Branches
Tags
No related merge requests found
...@@ -168,7 +168,8 @@ class RunSimulator: ...@@ -168,7 +168,8 @@ class RunSimulator:
kwargs of one simulation. kwargs of one simulation.
prefixes : list of str prefixes : list of str
""" """
var_samples = np.atleast_2d(var_samples) if var_samples.ndim == 0 or var_samples.ndim == 1:
var_samples = np.reshape(var_samples, (1, -1))
if var_samples.shape[1] != len(self.var_inp_parameter): if var_samples.shape[1] != len(self.var_inp_parameter):
raise ValueError( raise ValueError(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment