HI,
1. I load the network from csv in to variable `network` and then
2. network.investment_periods = [1]
when network.optimize.create_model(multi_investment_periods=True) is called I get the following error wich worked up to 0.35.
xarray.structure.alignment.AlignmentError: cannot align objects on coordinate 'snapshot' because of conflicting indexes
first index: PandasIndex(Index([ (1, 2), (1, 3), (1, 4), (1, 5), (1, 6), (1, 7),
(1, 8), (1, 9), (1, 10), (1, 11),
...
(1, 8751), (1, 8752), (1, 8753), (1, 8754), (1, 8755), (1, 8756),
(1, 8757), (1, 8758), (1, 8759), (1, 8760)],
dtype='object', name='snapshot', length=8759))
second index: PandasIndex(MultiIndex([(1, 1),
(1, 2),
(1, 3),
(1, 4),
(1, 5),
(1, 6),
(1, 7),
(1, 8),
(1, 9),
(1, 10),
...
(1, 8751),
(1, 8752),
(1, 8753),
(1, 8754),
(1, 8755),
(1, 8756),
(1, 8757),
(1, 8758),
(1, 8759),
(1, 8760)],
name='snapshot', length=8760))
first variable: <xarray.IndexVariable 'snapshot' (snapshot: 8759)> Size: 70kB
array([(1, 2), (1, 3), (1, 4), ..., (1, 8758), (1, 8759), (1, 8760)],
dtype=object)
second variable: <xarray.IndexVariable 'snapshot' (snapshot: 8760)> Size: 70kB
array([(1, 1), (1, 2), (1, 3), ..., (1, 8758), (1, 8759), (1, 8760)],
dtype=object)
I have checked all the inputs and they are all the same shape as snapshots.csv
Any idea what could cause this?
regards
Tobie