Fix an issue with calibration
There is a bug when using calibration mode with a target_fit_range
that doesn't start from 0.
The following error message is raised:
~/sw/pyxel_arctic/pyxel/pyxel/calibration/archipelago.py in run_evolve(self, readout, num_evolutions, num_best_decisions)
452 )
453 else:
--> 454 all_data_fit_range["target"] = xr.DataArray(
455 self.problem.all_target_data, dims=["id_processor", "y", "x"]
456 )
ValueError: arguments without labels along dimension 'y' cannot be aligned because they have different dimension size(s) {250} than the size of the aligned dimension labels: 251
This YAML code triggers the error:
calibration:
result_type: pixel
result_fit_range: [1950, 2200, 0, 1]
target_fit_range: [1950, 2200, 0, 1] # <== This will fail because 'target_fit_range' starts at 1950 and not 0