-
Notifications
You must be signed in to change notification settings - Fork 6
Migration guide v2.3.0
Nicolas Rol edited this page Apr 30, 2024
·
3 revisions
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)
.
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);
Since the default value of the parameter all_versions
has been inverted from false
to true
, you might want to add the parameter all_versions = false
in groovy script when statistics must be computed on launched range/versions only, for example:
min(ts['ts name'], all_versions = false)
max(ts['ts name'], all_versions = false)
sum(ts['ts name'], all_versions = false)
avg(ts['ts name'], all_versions = false)
median(ts['ts name'], all_versions = false)