You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/config.md
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -143,6 +143,36 @@ Variable metadata.
143
143
Type _object_.
144
144
Arbitrary variable metadata attributes.
145
145
146
+
## `attrs`
147
+
148
+
Type _object_.
149
+
Arbitrary dataset attributes. If `permit_eval` is set to `true`, string values may include Python expressions enclosed in `{{` and `}}` to dynamically compute attribute values; in the expression, the current dataset is named `ds`. Refer to the user guide for more information.
150
+
151
+
## `attrs_update_mode`
152
+
153
+
The mode used update target attributes from slice attributes. Independently of this setting, extra attributes configured by the `attrs` setting will finally be used to update the resulting target attributes.
154
+
Must be one of the following:
155
+
156
+
* Use attributes from first slice dataset and keep them.
157
+
Its value is `"keep"`.
158
+
159
+
* Replace existing attributes by attributes of last slice dataset.
160
+
Its value is `"replace"`.
161
+
162
+
* Update existing attributes by attributes of last slice dataset.
163
+
Its value is `"update"`.
164
+
165
+
* Ignore attributes from slice datasets.
166
+
Its value is `"ignore"`.
167
+
168
+
Defaults to `"keep"`.
169
+
170
+
## `permit_eval`
171
+
172
+
Type _boolean_.
173
+
Allow for dynamically computed values in dataset attributes `attrs` using the syntax `{{ expression }}`. Executing arbitrary Python expressions is a security risk, therefore this must be explicitly enabled. Refer to the user guide for more information.
0 commit comments