afmformats.afm_segment
Classes
AFMSegment: Simple wrapper around dict-like data to expose a single segment
- class afmformats.afm_segment.AFMSegment(raw_data, data, segment)[source]
Simple wrapper around dict-like data to expose a single segment
This class also caches the segment indices.
New Segment data
- Parameters:
raw_data (dict) – dictionary containing valid column names as keys and 1d ndarrays as values; this is raw data (e.g. from the measurement file) that may be lazily-loaded
data (dict) – same as raw_data, but in this case the data are already in memory; we distinguish between raw_data and data so that we know where the data came from (e.g. there might be “tip poisition” in both dictionaries, but we only always use (and override) the “tip position” in data. We never touch raw_data.
Inheritance
digraph inheritance3a7f714ddf { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "AFMSegment" [URL="#afmformats.afm_segment.AFMSegment",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Simple wrapper around dict-like `data` to expose a single segment"]; }- segment
The segment type (approach, intermediate, or retract)
- property segment_indices
boolean array of segment indices