navigate.model.metadata_sources.metadata.Metadata
- class navigate.model.metadata_sources.metadata.Metadata
Bases:
object
- __init__() → None
Metadata class
Store and convert internal representation of metadata (configuration, experiment, etc.) to alternative file types.
Note
Concept and some of the code borrowed from python-microscopy (https://github.com/python-microscopy/python-microscopy/).
Methods
__init__
()Metadata class
Set from configuration experiment
set_from_dict
(metadata_config)Set from a dictionary
Set shape from configuration experiment
Set stack order from configuration experiment
Attributes
Return configuration dictionary
Return per stack
Return shape as XYCZT.
Return voxel size
Pixel size in x (um) float: Pixel size in y (um) float: Pixel size in z (um)
Pixel size in x (um) float: Pixel size in y (um) float: Pixel size in z (um)
Pixel size in x (um) float: Pixel size in y (um) float: Pixel size in z (um)
Time displacement (s)
Step size between channels, should always be 1
Shape of the data in x int: Shape of the data in y int: Shape of the data in z int: Shape of the data in t int: Shape of the data in c
Shape of the data in x int: Shape of the data in y int: Shape of the data in z int: Shape of the data in t int: Shape of the data in c
Shape of the data in x int: Shape of the data in y int: Shape of the data in z int: Shape of the data in t int: Shape of the data in c
Shape of the data in x int: Shape of the data in y int: Shape of the data in z int: Shape of the data in t int: Shape of the data in c
Shape of the data in x int: Shape of the data in y int: Shape of the data in z int: Shape of the data in t int: Shape of the data in c
Number of positions
Active microscope
- set_from_configuration_experiment() → None
Set from configuration experiment
- set_from_dict(metadata_config: dict) → None
Set from a dictionary
- Parameters:
metadata_config (dict) – dictionary of metadata: “c”, “z”, “t”, “p”, “is_dynamic”, “per_stack”
- set_shape_from_configuration_experiment() → None
Set shape from configuration experiment
- set_stack_order_from_configuration_experiment() → None
Set stack order from configuration experiment
- active_microscope
Active microscope
- Type:
str
- property configuration: Optional[DictProxy]
Return configuration dictionary
- Returns:
configuration – Configuration dictionary
- Return type:
Optional[DictProxy]
- dc
Step size between channels, should always be 1
- Type:
int
- dt
Time displacement (s)
- Type:
float
- dx
Pixel size in x (um) float: Pixel size in y (um) float: Pixel size in z (um)
- Type:
float
- dy
Pixel size in x (um) float: Pixel size in y (um) float: Pixel size in z (um)
- Type:
float
- dz
Pixel size in x (um) float: Pixel size in y (um) float: Pixel size in z (um)
- Type:
float
- property per_stack: bool
Return per stack
- Returns:
True if per stack, False otherwise
- Return type:
bool
- positions
Number of positions
- Type:
int
- property shape: tuple
Return shape as XYCZT.
- Returns:
Shape as XYCZT
- Return type:
tuple
- shape_c
Shape of the data in x int: Shape of the data in y int: Shape of the data in z int: Shape of the data in t int: Shape of the data in c
- Type:
int
- shape_t
Shape of the data in x int: Shape of the data in y int: Shape of the data in z int: Shape of the data in t int: Shape of the data in c
- Type:
int
- shape_x
Shape of the data in x int: Shape of the data in y int: Shape of the data in z int: Shape of the data in t int: Shape of the data in c
- Type:
int
- shape_y
Shape of the data in x int: Shape of the data in y int: Shape of the data in z int: Shape of the data in t int: Shape of the data in c
- Type:
int
- shape_z
Shape of the data in x int: Shape of the data in y int: Shape of the data in z int: Shape of the data in t int: Shape of the data in c
- Type:
int
- property voxel_size: tuple
Return voxel size
- Returns:
Voxel size
- Return type:
tuple