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
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -146,28 +146,31 @@ Variable metadata.
146
146
## `attrs`
147
147
148
148
Type _object_.
149
-
Arbitrary dataset attributes. If `permit_computed_attrs` 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.
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
150
151
151
## `attrs_update_mode`
152
152
153
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
154
Must be one of the following:
155
155
156
-
*Keep attributes from first slice dataset.
156
+
*Use attributes from first slice dataset and keep them.
157
157
Its value is `"keep"`.
158
158
159
-
* Replace attributes from last slice dataset.
159
+
* Replace existing attributes by attributes of last slice dataset.
160
160
Its value is `"replace"`.
161
161
162
-
* Update attributes from last slice dataset.
162
+
* Update existing attributes by attributes of last slice dataset.
163
163
Its value is `"update"`.
164
164
165
+
* Ignore attributes from slice datasets.
166
+
Its value is `"ignore"`.
167
+
165
168
Defaults to `"keep"`.
166
169
167
-
## `permit_computed_attrs`
170
+
## `permit_eval`
168
171
169
172
Type _boolean_.
170
-
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.
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