From 0cdf279886888732eaf9a399ca69f084385d25c6 Mon Sep 17 00:00:00 2001 From: ccoffrin Date: Thu, 10 Jan 2019 06:51:16 -0700 Subject: [PATCH] add depreciation warnings to row_to_typed_dict and row_to_dict --- src/io/common.jl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/io/common.jl b/src/io/common.jl index 1981318d5..83cc6862a 100644 --- a/src/io/common.jl +++ b/src/io/common.jl @@ -81,3 +81,17 @@ function check_network_data(data::Dict{String,Any}) end + +function row_to_typed_dict(row_data, columns) + warn(LOGGER, "call to depreciated function PowerModels.row_to_typed_dict, use InfrastructureModels.row_to_typed_dict") + return InfrastructureModels.row_to_typed_dict(row_data, columns) +end + +function row_to_dict(row_data, columns) + warn(LOGGER, "call to depreciated function PowerModels.row_to_dict, use InfrastructureModels.row_to_dict") + return InfrastructureModels.row_to_dict(row_data, columns) +end + + + +