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.
FutureWarning: ChainedAssignmentError
1 parent a18f15a commit ca6d7d7Copy full SHA for ca6d7d7
deepsensor/model/pred.py
@@ -205,7 +205,7 @@ def assign(
205
index = (lead_times[i], date)
206
else:
207
index = date
208
- self[var_ID][prediction_parameter].loc[index] = pred
+ self[var_ID].loc[index, prediction_parameter] = pred
209
elif prediction_parameter == "samples":
210
assert len(data.shape) == 3, (
211
f"If prediction_parameter is 'samples', and mode is 'off-grid', data must"
@@ -219,7 +219,7 @@ def assign(
219
220
221
222
- self[var_ID][f"sample_{sample_i}"].loc[index] = pred
+ self[var_ID].loc[index, f"sample_{sample_i}"] = pred
223
224
225
def create_empty_spatiotemporal_xarray(
0 commit comments