Skip to content

support for parse #51

@CNOT

Description

@CNOT

It would be nice if parse knew how to handle Measurement type numbers.
Something on the following lines, might work:

import Base.parse
function parse(::Type{Measurement}, s::AbstractString)
   n = parse.(Float64,split(s,"±"))
   return n[1]±n[2]
end

This is handy when you have Measurement type data produced and stored as a string, for example in a CSV file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions