Closed FrancescAlted closed 3 years ago
To fix it you can reset the config after each evaluation:
ia.set_config(...)
precip_mean = (precip1_sp + precip2_sp + precip3_sp) / 3
precip_mean_cr = precip_mean.eval()
print(f"{precip_mean_cr.cratio:.2f}")
ia.reset_config_defaults()
But a better option is to use the with statement:
with ia.config(...):
precip_mean = (precip1_sp + precip2_sp + precip3_sp) / 3
precip_mean_speed = precip_mean.eval()
print(f"{precip_mean_speed.cratio:.2f}")
The next describes the issue: