Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tryparse for Measurement type #110

Closed
Mattriks opened this issue Aug 23, 2021 · 0 comments · Fixed by #112
Closed

tryparse for Measurement type #110

Mattriks opened this issue Aug 23, 2021 · 0 comments · Fixed by #112

Comments

@Mattriks
Copy link

Mattriks commented Aug 23, 2021

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}).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants