JuliaDynamics/DrWatson.jl

parse_savename MethodError

オープン

#361 opened on 2022/09/29

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)Julia (94 件のフォーク)batch import
bughelp wantedsavename

Repository metrics

Stars
 (915 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

I try encoding symbols with DrWatson.jl savename. The encoding works, but I have troubles getting the NamedTuple back from the encoded string, but only get MethodError on tryparse.

using DrWatson
slc = (site = :LUE, targetlim = :lim_P, scenario = (:prior_sep,))

tmp1 = DrWatson.savename(slc; allowedtypes=(Symbol, Tuple))
slc1 = DrWatson.parse_savename(tmp1, parsetypes = (Symbol, Tuple))

tmp2 = DrWatson.savename(slc; allowedtypes=(Symbol, Tuple), expand=["scenario"])
slc2 = DrWatson.parse_savename(tmp2, parsetypes = (Symbol, Tuple))

Since, I this is my first use of DrWatson, I think its just that I did not fully get the API yet, rather than a bug and posted this first at discourse.

How do I correctly specify the arguments to savename and parse_savename to make the example work for the example slc NamedTuple? I am using Julia 1.8.1 and DrWatson v2.9.1.

コントリビューターガイド