From f7349a1254401113387b14cae7f75cb952457693 Mon Sep 17 00:00:00 2001 From: JoelLucaAdams Date: Tue, 10 Dec 2024 15:32:36 +0000 Subject: [PATCH] update README --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 28491c6..ae1aba0 100644 --- a/README.md +++ b/README.md @@ -40,10 +40,12 @@ import epydeck # Read from a file with `epydeck.load` with open(filename) as f: - deck = epydeck.load(f) + deck, block_order = epydeck.load(f) print(deck.keys()) # dict_keys(['control', 'boundaries', 'constant', 'species', 'laser', 'output_global', 'output', 'dist_fn']) +print(block_order) +# ['control', 'boundaries', 'constant', 'species', 'laser', 'output_global', 'output', 'dist_fn'] # Modify the deck as a usual python dict: deck["species"]["proton"]["charge"] = 2.0