-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
825b7ab
commit b43f5dc
Showing
7 changed files
with
50 additions
and
12 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,25 @@ | ||
# Backends | ||
|
||
Please navigate to a specific section for more information about the implementation of each simulation file type. | ||
|
||
|
||
<div class="grid cards" markdown> | ||
|
||
- [__LCODE__](lcode.md) | ||
- [__OSIRIS__](osiris.md) | ||
- [__ozzy__](ozzy.md) | ||
</div> | ||
|
||
If you're looking for the backend-specific methods that you can call on a data object, see the [relevant section of *Data object methods*](../data-objects/backend-methods.md). | ||
|
||
## Interface class | ||
|
||
!!! info | ||
|
||
This section should only be relevant if you're planning to add support for a new backend or for debugging purposes. | ||
|
||
The `Backend` class serves as an interface between [ozzy's main file-reading functions](../../user-guide/reading-files.md) and the modules for each implemented backend. | ||
|
||
<!-- ## ozzy.backend --> | ||
|
||
::: ozzy.backend_interface |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 8 additions & 1 deletion
9
...ocs/reference/backends/submodules/ozzy.md → docs/docs/reference/backends/ozzy.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
|
||
# Ozzy backend | ||
|
||
When a file is saved via [`Dataset.ozzy.save()`][ozzy.accessors.OzzyDataset.save] or [`DataArray.ozzy.save()`][ozzy.accessors.OzzyDataArray.save], the data and metadata are mapped straightforwardly onto an HDF5 file structure (or NetCDF, if this is the selected format). This backend simply imports the file and ensures that the `'pic_data_type'` and `'data_origin'` are initialized correctly. | ||
When a file is saved via [`Dataset.ozzy.save()`][ozzy.accessors.OzzyDataset.save] or [`DataArray.ozzy.save()`][ozzy.accessors.OzzyDataArray.save], the data and metadata are mapped straightforwardly onto an HDF5 file structure (or NetCDF, if this is the selected format). This backend simply imports the file and ensures that the `'pic_data_type'` and `'data_origin'` are initialized correctly. | ||
|
||
## Entry-point `read` function | ||
|
||
::: ozzy.backends.ozzy_backend | ||
options: | ||
members: | ||
- read |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters