Skip to content
Snippets Groups Projects
Commit 777aa443 authored by Jonas Eppelt's avatar Jonas Eppelt
Browse files

added section on updating the json file

parent e7041791
No related branches found
No related tags found
No related merge requests found
......@@ -52,4 +52,7 @@ Currently files can be read from these three locations:
beambackgrounds = get_beam_background_by_key("experiment22_run30")
add_simulation(basf2_path, bkgfiles=beambackgrouns.gridka_file_list)
```
\ No newline at end of file
```
### Editing the JSON file
To update entries in the json file or add new entries, you simply create an `BeambackgroundMetadata` with the desired values. Then call its `update_json_entry` function. Be aware, that this will update the JSON file for everybody, so update with care. If you want to have a special version of a certain entry, create a new entry by setting the `key` property.
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment