pyiron_base.storage.filedata.FileData

pyiron_base.storage.filedata.FileData#

class pyiron_base.storage.filedata.FileData(file, data=None, metadata=None, filetype=None, pyiron_project=None)[source]#

Bases: FileDataTemplate

FileData stores an instance of a data file, e.g. a single Image from a measurement.

__init__(file, data=None, metadata=None, filetype=None, pyiron_project=None)[source]#

FileData class to store data and associated metadata.

Parameters:
  • file (str) – path to the data file (if data is None) or filename associated with the data.

  • data (object/None) – object containing data

  • metadata (dict/DataContainer) – Dictionary of metadata associated with the data

  • filetype (str) – File extension associated with the type data, If provided this overwrites the assumption based on the extension of the filename.

  • pyiron_project (Project) – Project this file belongs to, if any, used to load files with project awareness.

Methods

__init__(file[, data, metadata, filetype, ...])

FileData class to store data and associated metadata.

Attributes

data

Return the associated data.

property data#

Return the associated data.