aotpy.io package

Subpackages

Submodules

aotpy.io.base module

This module contains base classes for defining writers and readers in aotpy.

class aotpy.io.base.SystemReader(filename: str | PathLike, **kwargs)[source]

Bases: ABC

Abstract class for system readers.

Readers are able to create an AOSystem based on a file of a certain format.

Parameters:
  • filename – Path to file to be read into an AOSystem.

  • **kwargs – Keyword arguments passed on as options to the file handling function.

abstract get_system() AOSystem[source]

Return AOSystem that has been read.

class aotpy.io.base.SystemWriter(system: AOSystem)[source]

Bases: ABC

Abstract class for system writers.

Writers are able to write an AOSystem into a file using some format.

Parameters:

systemAOSystem to be written into a file.

abstract write(filename: str | PathLike, **kwargs) None[source]

Write the initialized system into the specified filename.

Parameters:
  • filename – Path to the file that will be written.

  • **kwargs – Keyword arguments passed on as options to the file handling function.

Module contents

This subpackage contains modules and packages for handling AOT files using data storage formats supported by aotpy. Currently only FITS is supported.