Skip to content

Commit

Permalink
add depreciation warnings to row_to_typed_dict and row_to_dict
Browse files Browse the repository at this point in the history
  • Loading branch information
ccoffrin committed Jan 10, 2019
1 parent 4ae154e commit 0cdf279
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/io/common.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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




0 comments on commit 0cdf279

Please sign in to comment.