Created
June 30, 2015 16:34
-
-
Save elcritch/825ef57e5ab219795499 to your computer and use it in GitHub Desktop.
Simplify simple Matlab-based data file in Julia, turn dicts keys into symbols. Hopefully this is just a "temp hack".
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
simplify_mat(d::Dict{ASCIIString, Any}) = Dict{Symbol, Any}( [ symbol(string(k)) => simplify_mat(v) for (k,v) in d ] ) | |
simplify_mat(arr::Array{Float64,2}) = arr[:] # slicing??? | |
simplify_mat(o::Any) = o |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment