bids.layout.Tag¶
-
class
Tag
(file, entity, value, dtype=None)[source]¶ Represents an association between a File and an Entity.
- Parameters
file (BIDSFile) – The associated BIDSFile.
entity (Entity) – The associated Entity.
value (json-serializable type) – The value to store for this file/entity pair. Must be of type str, int, float, bool, or any json-serializable structure.
dtype (str) – Optional type for the value field. If None, inferred from value. If passed, must be one of str, int, float, bool, or json. Any other value will be treated as json (and will fail if the value can’t be serialized to json).
- Attributes
- entity
- entity_name
- file
- file_path
-
__init__
(self, file, entity, value, dtype=None)¶
Methods
__init__
(self, file, entity, value[, dtype])Attributes
entity
entity_name
file
file_path
metadata