Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelLucaAdams committed Dec 10, 2024
1 parent 9cdb26c commit f7349a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f7349a1

Please sign in to comment.