We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90e42cf commit 63cf198Copy full SHA for 63cf198
pysteps/blending/steps.py
@@ -1467,10 +1467,8 @@ def calculate_weights_spn(correlations, cov):
1467
# Calculate the noise weight
1468
else:
1469
noise_weight = np.asarray(np.sqrt(1.0 - weights.dot(correlations)))[0]
1470
- # Make sure the weights are positive, otherwise weight = 0.0
1471
- weights = np.where(weights < 0.0, 0.0, weights)[0]
1472
# Finally, add the noise_weights to the weights variable.
1473
- weights = np.concatenate((weights, noise_weight), axis=0)
+ weights = np.concatenate((np.array(weights)[0], noise_weight), axis=0)
1474
1475
# Otherwise, the weight equals the correlation on that scale level and
1476
# the noise component weight equals 1 - this weight. This only occurs for
0 commit comments