DrWatson and NamedTuples

wave_and_matter
Tue, 16 Apr 2024 12:25:22 +0000
General Usage

I have been using DrWatson for a project at work for months now and have found it mostly helpful.

However, there is one thing I do not understand:
As far as I understand, it is more efficient in many cases to use NamedTuples for handling structured, dict-like data like simulation results. However, DrWatson seems not to be able to store and load NamedTuples directly, and you need a conversion step to a Dictionary.

Main question is: Why - and is there a way to handle NamedTuples more directly.

My second question: Right now, DrWatson is complaining about me using “key instead of symbol instead of a string”. Apart from the log-pollution caused by this warning there is no problem at all though. Can this be fixed/silenced (without just using Suppressor around any Code that calls produce_or_load)?

3 posts - 2 participants