locan.locan_io.locdata.asdf_io.load_asdf_file#

locan.locan_io.locdata.asdf_io.load_asdf_file(path, nrows=None, convert=True)[source]#

Load data from ASDF localization file.

Parameters:
  • path (str | os.PathLike[Any] | SupportsRead[Any]) – File path for a file to load.

  • nrows (int | None) – The number of localizations to load from file. None means that all available rows are loaded.

  • convert (bool) – If True convert types by applying type specifications in locan.constants.PROPERTY_KEYS.

Returns:

A new instance of LocData with all localizations.

Return type:

LocData