JSON and dict for parameter files: Revision history

From Master of Neuroscience Wiki

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

17 October 2025

15 October 2025

  • curprev 13:2713:27, 15 October 2025 Davrot talk contribs 1,999 bytes +1,999 Created page with " == The goal == A combination of JSON (JavaScript Object Notation) file and dictionaries allows to organize parameters in an external file. Questions to [mailto:davrot@uni-bremen.de David Rotermund] == [https://docs.python.org/3/library/json.html json – JSON encoder and decoder] == === [https://docs.python.org/3/library/json.html#json.dump dump] === <syntaxhighlight lang="python">import json a = dict(one=1, two=2, three=3) with open("data_out.json", "w") as file:..." Tag: Visual edit