JuliaPhysics / Measurements.jl

Error propagation calculator and library for physical measurements. It supports real and complex numbers with uncertainty, arbitrary precision calculations, operations with arrays, and numerical integration.

Home Page:https://juliaphysics.github.io/Measurements.jl/stable/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tryparse for Measurement type

Mattriks opened this issue · comments

According to the latest CSV documentation , non-standard types can be read, if Base.tryparse has been extended. Currently I get an error when trying to read a single column of value±uncertainty with CSV v0.8.5.

As a workaround I rolled my own simplistic Base.tryparse(::Type{Measurement{T}}, str::S) where {T<:AbstractFloat, S<:AbstractString}).