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
- segment¶
The segment type (approach, intermediate, or retract)
- property segment_indices¶
boolean array of segment indices