Commit 6fb5d56d authored by Viacheslav Ostroukh's avatar Viacheslav Ostroukh 🚲
Browse files

Merge branch 'stable'

parents 2cac5a9a 0e398ff4
Pipeline #97277 failed with stages
in 63 minutes and 52 seconds
......@@ -2061,8 +2061,8 @@ def _generate_spectrum(syst, params, mask, x, y):
h_p = np.atleast_2d(bound_ham(**p))
# massage masked grid points into a list of NaNs of the appropriate length
n_eigvals = len(next(filter(lambda s: s is not None, spectrum)))
nan_list = [np.nan] * n_eigvals
shape_eigvals = next(filter(lambda s: s is not None, spectrum)).shape
nan_list = np.full(shape_eigvals, np.nan)
spectrum = [nan_list if s is None else s for s in spectrum]
# make into a numpy array and reshape
new_shape = [len(v) for v in array_values] + [-1]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment