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/converters/vision_converter.md
+27Lines changed: 27 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,33 @@ Vision introduced UUID based identifier system since version 9.7. It is implemen
52
52
53
53
An examplery usage can be found in the example notebook as well as in the test cases.
54
54
55
+
## Optional extra columns
56
+
57
+
When working with Vision Excel exports, some metadata columns (like `GUID` or `StationID`) may not always be present, especially in partial exports. The `optional_extra` feature allows you to specify columns that should be included in `extra_info` if present, but won't cause conversion failure if missing.
58
+
59
+
**Syntax:**
60
+
```yaml
61
+
grid:
62
+
Transformers:
63
+
transformer:
64
+
id:
65
+
auto_id:
66
+
key: Number
67
+
# ... other fields ...
68
+
extra:
69
+
- ID # Required - fails if missing
70
+
- Name # Required - fails if missing
71
+
- optional_extra:
72
+
- GUID # Optional - skipped if missing
73
+
- StationID # Optional - skipped if missing
74
+
```
75
+
76
+
**Behavior:**
77
+
- Required columns (listed directly under `extra`) will cause a KeyError if missing
78
+
- Optional columns (nested under `optional_extra`) are silently skipped if not found
79
+
- If some optional columns are present and others missing, only the present ones are included in `extra_info`
80
+
- This feature is particularly useful for handling different Vision export configurations or versions
81
+
55
82
## Common/Known issues related to Vision
56
83
So far we have the following issue known to us related to Vision exported spread sheets. We provide a solution from user perspective to the best of our knowledge.
0 commit comments