The yt-napari JSON schema¶
The yt-napari plugins rely on pydantic models for setting variables and properties required to load in data from yt. The primary pydantic model, is exported as a json-schema to facilitate loading in data (see the json schema example) and to semi-automatically build the widget plugin.
The latest json schema is rendered below, but the raw json can be viewed directly here or downloaded here
.
InputModel¶
type |
object |
|||
properties |
||||
|
Datasets |
|||
list of dataset containers to load |
||||
type |
array |
|||
default |
null |
|||
items |
#/$defs/DataContainer |
|||
|
Timeseries |
|||
List of timeseries to load |
||||
type |
array |
|||
default |
null |
|||
items |
#/$defs/Timeseries |
|||
$defs |
||||
|
CoveringGrid |
|||
type |
object |
|||
properties |
||||
|
Fields |
|||
list of fields to load for this selection |
||||
type |
array |
|||
default |
null |
|||
items |
#/$defs/ytField |
|||
|
the left edge (min x, min y, min z) |
|||
default |
null |
|||
allOf |
#/$defs/Left_Edge |
|||
|
the right edge (max x, max y, max z) |
|||
default |
null |
|||
allOf |
#/$defs/Right_Edge |
|||
|
Level |
|||
Grid level to sample at |
||||
type |
integer |
|||
default |
0 |
|||
|
Num Ghost Zones |
|||
Number of ghost zones to include |
||||
type |
integer |
|||
default |
0 |
|||
|
Rescale |
|||
rescale the final image between 0,1 |
||||
type |
boolean |
|||
default |
False |
|||
|
DataContainer |
|||
type |
object |
|||
properties |
||||
|
Filename |
|||
the filename for the dataset |
||||
type |
string |
|||
default |
null |
|||
|
selections to load in this dataset |
|||
default |
null |
|||
allOf |
#/$defs/SelectionObject |
|||
|
Store In Cache |
|||
if enabled, will store references to yt datasets. |
||||
type |
boolean |
|||
default |
True |
|||
|
Left_Edge |
|||
type |
object |
|||
properties |
||||
|
Value |
|||
3-element unitful tuple. |
||||
type |
array |
|||
default |
0.0 |
|||
0.0 |
||||
0.0 |
||||
maxItems |
3 |
|||
minItems |
3 |
|||
|
Unit |
|||
the unit length string. |
||||
type |
string |
|||
default |
code_length |
|||
|
Length_Tuple |
|||
type |
object |
|||
properties |
||||
|
Value |
|||
3-element unitful tuple. |
||||
type |
array |
|||
default |
null |
|||
maxItems |
3 |
|||
minItems |
3 |
|||
|
Unit |
|||
the unit length string. |
||||
type |
string |
|||
default |
code_length |
|||
|
Length_Value |
|||
type |
object |
|||
properties |
||||
|
Value |
|||
Single unitful value. |
||||
type |
number |
|||
default |
null |
|||
|
Unit |
|||
the unit length string. |
||||
type |
string |
|||
default |
code_length |
|||
|
Region |
|||
type |
object |
|||
properties |
||||
|
Fields |
|||
list of fields to load for this selection |
||||
type |
array |
|||
default |
null |
|||
items |
#/$defs/ytField |
|||
|
the left edge (min x, min y, min z) |
|||
default |
null |
|||
allOf |
#/$defs/Left_Edge |
|||
|
the right edge (max x, max y, max z) |
|||
default |
null |
|||
allOf |
#/$defs/Right_Edge |
|||
|
Resolution |
|||
the resolution at which to sample between the edges. |
||||
type |
array |
|||
default |
400 |
|||
400 |
||||
400 |
||||
maxItems |
3 |
|||
minItems |
3 |
|||
|
Rescale |
|||
rescale the final image between 0,1 |
||||
type |
boolean |
|||
default |
False |
|||
|
Right_Edge |
|||
type |
object |
|||
properties |
||||
|
Value |
|||
3-element unitful tuple. |
||||
type |
array |
|||
default |
1.0 |
|||
1.0 |
||||
1.0 |
||||
maxItems |
3 |
|||
minItems |
3 |
|||
|
Unit |
|||
the unit length string. |
||||
type |
string |
|||
default |
code_length |
|||
|
SelectionObject |
|||
type |
object |
|||
properties |
||||
|
Regions |
|||
a list of regions to load |
||||
type |
array |
|||
default |
null |
|||
items |
#/$defs/Region |
|||
|
Slices |
|||
a list of slices to load |
||||
type |
array |
|||
default |
null |
|||
items |
#/$defs/Slice |
|||
|
Covering Grids |
|||
a list of covering grids to load |
||||
type |
array |
|||
default |
null |
|||
items |
#/$defs/CoveringGrid |
|||
|
Slice |
|||
type |
object |
|||
properties |
||||
|
Fields |
|||
list of fields to load for this selection |
||||
type |
array |
|||
default |
null |
|||
items |
#/$defs/ytField |
|||
|
Normal |
|||
the normal axis of the slice |
||||
type |
string |
|||
default |
null |
|||
|
The center point of the slice, default domain center |
|||
default |
null |
|||
allOf |
#/$defs/Length_Tuple |
|||
|
The slice width, defaults to full domain |
|||
default |
null |
|||
allOf |
#/$defs/Length_Value |
|||
|
The slice width, defaults to full domain |
|||
default |
null |
|||
allOf |
#/$defs/Length_Value |
|||
|
Resolution |
|||
the resolution at which to sample the slice |
||||
type |
array |
|||
default |
400 |
|||
400 |
||||
maxItems |
2 |
|||
minItems |
2 |
|||
|
Periodic |
|||
should the slice be periodic? default False. |
||||
type |
boolean |
|||
default |
False |
|||
|
Rescale |
|||
rescale the final image between 0,1 |
||||
type |
boolean |
|||
default |
False |
|||
|
TimeSeriesFileSelection |
|||
type |
object |
|||
properties |
||||
|
Directory |
|||
The directory of the timseries |
||||
type |
string |
|||
default |
null |
|||
|
File Pattern |
|||
The file pattern to match |
||||
type |
string |
|||
default |
null |
|||
|
File List |
|||
List of files to load. |
||||
type |
array |
|||
default |
null |
|||
items |
type |
string |
||
|
File Range |
|||
Given files matched by file_pattern, this option will select a range. Argument orderis taken as start:stop:step. |
||||
type |
array |
|||
default |
null |
|||
maxItems |
3 |
|||
minItems |
3 |
|||
|
Timeseries |
|||
type |
object |
|||
properties |
||||
|
#/$defs/TimeSeriesFileSelection |
|||
|
selections to load in this dataset |
|||
default |
null |
|||
allOf |
#/$defs/SelectionObject |
|||
|
Load As Stack |
|||
If True, will stack images along a new dimension. |
||||
type |
boolean |
|||
default |
False |
|||
|
ytField |
|||
type |
object |
|||
properties |
||||
|
Field Type |
|||
a field type in the yt dataset |
||||
type |
string |
|||
default |
null |
|||
|
Field Name |
|||
a field in the yt dataset |
||||
type |
string |
|||
default |
null |
|||
|
Take Log |
|||
if true, will apply log10 to the selected data |
||||
type |
boolean |
|||
default |
True |
List of schema versions¶
The following versions are available (latest first):
yt-napari_0.5.0.json : view , download
yt-napari_0.4.0.json : view , download
yt-napari_0.3.0.json : view , download
yt-napari_0.2.1.json : view , download
yt-napari_0.2.0.json : view , download