JuliaDynamics/DrWatson.jl

Allow `dict_list` to return other types than dictionaries

开放

#367 创建于 2022年11月2日

 (0 条评论) (0 个反应) (0 位负责人)Julia (94 个派生)batch import
enhancementgood first issuerunning-listing

仓库指标

星标
 (915 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

In many cases users may want to have the configuration parameters of their programs to be a dedicated Julia composite type. This has many advantages, including customizing savename. It would be nice if dict_list could create objects of a given composite type instead of dictionaries. Would also make the whole integration with produce_or_load simpler.

A very simple, but probably not the most performant way to do this, is to leave dict_list as is, and add a final conversion step by using our functions dict2struct and/or ntuple2struct.

贡献者指南