nornir_volumemodel API
- class nornir_volumemodel.Block(**kwargs)[source]
Bases:
DirectoryResource,NamedA grouping of contiguous Z-sections within a volume.
A
Blockis the second level of the volume hierarchy (Volume → Block → Section → Channel …). In a typical Nornir experiment one block spans all physical sections, but the model allows multiple named blocks (e.g. separate tissue blocks imaged in the same experiment).Blocks own:
A list of
Sectionobjects.Optional section-to-section (STOS) alignment groups and maps.
- AddSection(val)[source]
Append a section to this block.
- Parameters:
val (section.Section) – Section to add; must not already be present.
- Raises:
AssertionError – if
valis not aSectionor is a duplicate.
- class nornir_volumemodel.Channel(**kwargs)[source]
Bases:
DirectoryResource,Namedclassdocs
- property Filters
- property Scale
- property Transforms
- class nornir_volumemodel.Data(**kwargs)[source]
Bases:
FileResourceRepresents a file on disk with hashable amount of data
- class nornir_volumemodel.DirectoryResource[source]
Bases:
ExternalResource
- class nornir_volumemodel.ExternalResource[source]
Bases:
ModelBaseProperties of objects whose data is stored outside the object file structure, such as on a file system
- property FullPath
- property Parent
- property Path
- property RelativePath
Relative path from volume root
- class nornir_volumemodel.FileResource[source]
Bases:
ExternalResourceRepresents a file
- property Checksum
- property Type
- class nornir_volumemodel.Filter(**kwargs)[source]
Bases:
DirectoryResource,Namedclassdocs
- property HistogramData
- property ImageSet
- property PruneData
- property TilePyramid
- class nornir_volumemodel.Image(**kwargs)[source]
Bases:
FileResourceAn image file on disk
- property MaskPath
- class nornir_volumemodel.ImageSet(**kwargs)[source]
Bases:
DirectoryResource,PyramidInterfaceclassdocs
- class nornir_volumemodel.InputTransformPropertySet(**kwargs)[source]
Bases:
object- property InputTransformChecksum
- property InputTransformType
- class nornir_volumemodel.Level(**kwargs)[source]
Bases:
DirectoryResourceclassdocs
- property Image
- property Number
- nornir_volumemodel.Load_Xml(VolumePath, Create=False, UseCache=True)
Load the volume information for the specified directory or create one if it doesn’t exist
- class nornir_volumemodel.ModelBase[source]
Bases:
objectProperties common to all volume objects
- property Version
- class nornir_volumemodel.Named[source]
Bases:
objectObject that contains other objects. Path always refers to a directory
- property Name
- class nornir_volumemodel.Numbered[source]
Bases:
objectObject that contains other objects. Path always refers to a directory
- property Number
- nornir_volumemodel.Save_Xml(XMLPath)
- class nornir_volumemodel.Scale(**kwargs)[source]
Bases:
ModelBaseclassdocs
- property AxisNames
- property X
- property Y
- property Z
- class nornir_volumemodel.Section(**kwargs)[source]
Bases:
DirectoryResource,NumberedOne physical Z-slice (section) of the volume.
A
Sectionis identified by its integerNumber(the Z-level in the volume stack). It holds one or more imagingChannelobjects — e.g.TEMandLeveled— each of which owns filters, tile pyramids, and registration transforms.- AddChannel(val)[source]
Append a channel to this section.
- Parameters:
val (channel.Channel) – Channel to add; must not already be present.
- Raises:
AssertionError – if
valis not aChannelor is a duplicate.
- class nornir_volumemodel.TilePyramid(**kwargs)[source]
Bases:
DirectoryResource,PyramidInterfaceclassdocs
- class nornir_volumemodel.Transform(**kwargs)[source]
Bases:
FileResource,InputTransformPropertySetRepresents a file on disk with hashable amount of data
- class nornir_volumemodel.Volume(**kwargs)[source]
Bases:
DirectoryResource,NamedTop-level container for a Nornir-registered electron-microscopy volume.
A
Volumeis the root of the object hierarchy. It owns one or moreBlockobjects, each of which groups a contiguous run of Z-sections and their associated image channels, filters, tile pyramids, and registration transforms.Typical usage:
import nornir_volumemodel vol = nornir_volumemodel.Load_Xml('/path/to/volume.xml') for block in vol.Blocks: for section in block.Sections: print(section.Number)
- AddBlock(val)[source]
Append a block to this volume.
- Parameters:
val (block.Block) – Block to add; must not already be present.
- Raises:
AssertionError – if
valis not aBlockor is a duplicate.
Created on Apr 11, 2014
@author: u0490822
- class nornir_volumemodel.model.volume.DirectoryResource[source]
Bases:
ExternalResource
- class nornir_volumemodel.model.volume.Named[source]
Bases:
objectObject that contains other objects. Path always refers to a directory
- property Name
- class nornir_volumemodel.model.volume.Volume(**kwargs)[source]
Bases:
DirectoryResource,NamedTop-level container for a Nornir-registered electron-microscopy volume.
A
Volumeis the root of the object hierarchy. It owns one or moreBlockobjects, each of which groups a contiguous run of Z-sections and their associated image channels, filters, tile pyramids, and registration transforms.Typical usage:
import nornir_volumemodel vol = nornir_volumemodel.Load_Xml('/path/to/volume.xml') for block in vol.Blocks: for section in block.Sections: print(section.Number)
- AddBlock(val)[source]
Append a block to this volume.
- Parameters:
val (block.Block) – Block to add; must not already be present.
- Raises:
AssertionError – if
valis not aBlockor is a duplicate.
Created on Apr 11, 2014
@author: u0490822
- class nornir_volumemodel.model.block.Block(**kwargs)[source]
Bases:
DirectoryResource,NamedA grouping of contiguous Z-sections within a volume.
A
Blockis the second level of the volume hierarchy (Volume → Block → Section → Channel …). In a typical Nornir experiment one block spans all physical sections, but the model allows multiple named blocks (e.g. separate tissue blocks imaged in the same experiment).Blocks own:
A list of
Sectionobjects.Optional section-to-section (STOS) alignment groups and maps.
- AddSection(val)[source]
Append a section to this block.
- Parameters:
val (section.Section) – Section to add; must not already be present.
- Raises:
AssertionError – if
valis not aSectionor is a duplicate.
- class nornir_volumemodel.model.block.DirectoryResource[source]
Bases:
ExternalResource
- class nornir_volumemodel.model.block.Named[source]
Bases:
objectObject that contains other objects. Path always refers to a directory
- property Name
Created on Apr 11, 2014
@author: u0490822
- class nornir_volumemodel.model.section.DirectoryResource[source]
Bases:
ExternalResource
- class nornir_volumemodel.model.section.Numbered[source]
Bases:
objectObject that contains other objects. Path always refers to a directory
- property Number
- class nornir_volumemodel.model.section.Section(**kwargs)[source]
Bases:
DirectoryResource,NumberedOne physical Z-slice (section) of the volume.
A
Sectionis identified by its integerNumber(the Z-level in the volume stack). It holds one or more imagingChannelobjects — e.g.TEMandLeveled— each of which owns filters, tile pyramids, and registration transforms.- AddChannel(val)[source]
Append a channel to this section.
- Parameters:
val (channel.Channel) – Channel to add; must not already be present.
- Raises:
AssertionError – if
valis not aChannelor is a duplicate.
Created on Apr 11, 2014
@author: u0490822
- class nornir_volumemodel.model.channel.Channel(**kwargs)[source]
Bases:
DirectoryResource,Namedclassdocs
- property Filters
- property Scale
- property Transforms
- class nornir_volumemodel.model.channel.DirectoryResource[source]
Bases:
ExternalResource
- class nornir_volumemodel.model.channel.Named[source]
Bases:
objectObject that contains other objects. Path always refers to a directory
- property Name
Created on Apr 11, 2014
@author: u0490822
- class nornir_volumemodel.model.scale.AxisScale(UnitsPerPixel, UnitsOfMeasure)[source]
Bases:
object- property UnitsOfMeasure
- property UnitsPerPixel
- class nornir_volumemodel.model.scale.ModelBase[source]
Bases:
objectProperties common to all volume objects
- property Version
- class nornir_volumemodel.model.scale.Scale(**kwargs)[source]
Bases:
ModelBaseclassdocs
- property AxisNames
- property X
- property Y
- property Z
Created on Apr 11, 2014
@author: u0490822
- class nornir_volumemodel.model.transform.FileResource[source]
Bases:
ExternalResourceRepresents a file
- property Checksum
- property Type
- class nornir_volumemodel.model.transform.InputTransformPropertySet(**kwargs)[source]
Bases:
object- property InputTransformChecksum
- property InputTransformType
- class nornir_volumemodel.model.transform.Transform(**kwargs)[source]
Bases:
FileResource,InputTransformPropertySetRepresents a file on disk with hashable amount of data
Created on Apr 11, 2014
@author: u0490822
- class nornir_volumemodel.model.base_classes.DirectoryResource[source]
Bases:
ExternalResource
- class nornir_volumemodel.model.base_classes.ExternalResource[source]
Bases:
ModelBaseProperties of objects whose data is stored outside the object file structure, such as on a file system
- property FullPath
- property Parent
- property Path
- property RelativePath
Relative path from volume root
- class nornir_volumemodel.model.base_classes.FileResource[source]
Bases:
ExternalResourceRepresents a file
- property Checksum
- property Type
- class nornir_volumemodel.model.base_classes.ModelBase[source]
Bases:
objectProperties common to all volume objects
- property Version
- class nornir_volumemodel.model.base_classes.Named[source]
Bases:
objectObject that contains other objects. Path always refers to a directory
- property Name
- class nornir_volumemodel.model.base_classes.Numbered[source]
Bases:
objectObject that contains other objects. Path always refers to a directory
- property Number
Created on Apr 11, 2014
@author: u0490822
- nornir_volumemodel.persistance.nornir_xml.main.Load(VolumePath, Create=False, UseCache=True)[source]
Load the volume information for the specified directory or create one if it doesn’t exist