core

module of dascore.io source

Base functionality for reading, writing, determining file formats, and scanning Das Data.

Functions

Name Description
get_format Return the file’s format name and version.
is_directory_format Return True if a directory is itself one FiberIO scan unit.
read Read a fiber file.
read_array Read an array, or part of one, out of a fiber file.
scan Scan a potential patch source and return its patch summaries.
scan_payloads Scan a potential patch source and return full coordinate payloads.
scan_to_df Scan a path, return a dataframe of contents.
source_identity Return what a source is: its canonical path, its size and its mtime.
write Write a Patch or Spool to disk.

Classes

Name Description
FiberIO Interface for a fiber data format; subclass it to add format support.
H5ArrayMixin Describe and slice a single-patch HDF5 format’s array from its dataset.