Skip to content

Migration guide v2.3.0

Nicolas Rol edited this page Apr 29, 2024 · 3 revisions

Breaking changes

FileSystemTimeSeriesStore

The class FileSystemTimeseriesStore has been renamed FileSystemTimeSeriesStore.

The method FileSystemTimeSeriesStore.importTimeSeries(List, int, boolean, boolean) is now deprecated. You should instead use FileSystemTimeSeriesStore.importTimeSeries(List, int, ExistingFiles).

TimeSeriesMapper

Due to the parameters being moved from the methods to the constructor, users have to modify:

TimeSeriesMapper mapper = new TimeSeriesMapper(config, network, logger);
TimeSeriesMapperParameters parameters = new TimeSeriesMapperParameters(store.getTimeSeriesDataVersions(), range, true, true, false, mappingParameters.getToleranceThreshold());
mapper.mapToNetwork(store, parameters, observers);

to:

TimeSeriesMapperParameters parameters = new TimeSeriesMapperParameters(store.getTimeSeriesDataVersions(), range, true, true, false, mappingParameters.getToleranceThreshold());
TimeSeriesMapper mapper = new TimeSeriesMapper(config, parameters, network, logger);
mapper.mapToNetwork(store, observers);
Clone this wiki locally