JuliaDynamics/DrWatson.jl

Allow `dict_list` to return other types than dictionaries

Open

#367 ouverte le 2 nov. 2022

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)Julia (94 forks)batch import
enhancementgood first issuerunning-listing

Métriques du dépôt

Stars
 (915 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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.

Guide contributeur